aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFeng Xiao <xfxyjwf@gmail.com>2018-04-05 16:46:06 -0700
committerGitHub <noreply@github.com>2018-04-05 16:46:06 -0700
commita72da27f5a46844e1a70725bb4362c2e51d7195d (patch)
tree00eda2176b5c29f4924b3e3c196cd924c3e7c4b9
parente7e6c6b8d1317aa315530024224bfb92e857daa0 (diff)
parentd3e8a54020d9875218f79a3ac8f90008cd0e81f8 (diff)
downloadprotobuf-a72da27f5a46844e1a70725bb4362c2e51d7195d.tar.gz
protobuf-a72da27f5a46844e1a70725bb4362c2e51d7195d.tar.bz2
protobuf-a72da27f5a46844e1a70725bb4362c2e51d7195d.zip
Merge pull request #4475 from chenchuanyin/patch-1
Fix problem: cmake build failed in c++11 by clang
-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)