aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorSilver Chan <chenchuanyinuestc@gmail.com>2018-04-04 10:31:05 +0800
committerGitHub <noreply@github.com>2018-04-04 10:31:05 +0800
commitd3e8a54020d9875218f79a3ac8f90008cd0e81f8 (patch)
tree104b21320d8ad7f7e6750e7c6994c47f0a0ae282 /cmake
parentc93174346149f259ebc85fdb46826fcf84abb07d (diff)
downloadprotobuf-d3e8a54020d9875218f79a3ac8f90008cd0e81f8.tar.gz
protobuf-d3e8a54020d9875218f79a3ac8f90008cd0e81f8.tar.bz2
protobuf-d3e8a54020d9875218f79a3ac8f90008cd0e81f8.zip
Fix problem: cmake build failed in c++11 by clang
CMakeLists.txt adds c++11 flags for clang
Diffstat (limited to 'cmake')
-rw-r--r--cmake/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
index bf3f8863..fca4da33 100644
--- a/cmake/CMakeLists.txt
+++ b/cmake/CMakeLists.txt
@@ -15,6 +15,9 @@ endif()
# Project
project(protobuf C CXX)
+# Add c++11 flags for clang
+set(CMAKE_CXX_FLAGS "-std=c++11")
+
# Options
option(protobuf_BUILD_TESTS "Build tests" ON)
option(protobuf_BUILD_EXAMPLES "Build examples" OFF)