Merge pull request #4475 from chenchuanyin/patch-1

Fix problem: cmake build failed in c++11  by clang
This commit is contained in:
Feng Xiao 2018-04-05 16:46:06 -07:00 committed by GitHub
commit a72da27f5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)