diff options
author | Justin Tobler <jtobler@gitlab.com> | 2023-06-12 21:06:32 +0300 |
---|---|---|
committer | Justin Tobler <jtobler@gitlab.com> | 2023-06-12 21:06:32 +0300 |
commit | 764315bd620379649570dc1b27d9f9b74e099c98 (patch) | |
tree | beba3dfe7a69bd18ca69b38d30021363f3fce7f9 /Makefile | |
parent | 3ee3de216e2e3d0fe4c6abe35481b41af0c68223 (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-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |