Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Tobler <jtobler@gitlab.com>2023-06-12 21:06:32 +0300
committerJustin Tobler <jtobler@gitlab.com>2023-06-12 21:06:32 +0300
commit764315bd620379649570dc1b27d9f9b74e099c98 (patch)
treebeba3dfe7a69bd18ca69b38d30021363f3fce7f9 /Makefile
parent3ee3de216e2e3d0fe4c6abe35481b41af0c68223 (diff)
Makefile: Build protoc with C++14
CMake is failing to build protoc version 23.1 on MacOS due to the following error when compiling abseil: `error: "C++ versions less than C++14 are not supported."` To remeidate this, the `DCMAKE_CXX_STANDARD=14` build option is set when building protoc.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8c358995e..e4f6d3ba9 100644
--- a/Makefile
+++ b/Makefile
@@ -110,6 +110,7 @@ ifeq ($(origin PROTOC_BUILD_OPTIONS),undefined)
PROTOC_BUILD_OPTIONS += -DBUILD_SHARED_LIBS=NO
PROTOC_BUILD_OPTIONS += -DCMAKE_INSTALL_PREFIX=${PROTOC_INSTALL_DIR}
PROTOC_BUILD_OPTIONS += -Dprotobuf_BUILD_TESTS=OFF
+ PROTOC_BUILD_OPTIONS += -DCMAKE_CXX_STANDARD=14
endif
# Git target