Skip to content

Commit

Permalink
Fix problem: cmake build failed in c++11 by clang
Browse files Browse the repository at this point in the history
CMakeLists.txt adds c++11 flags for clang
  • Loading branch information
chenchuanyin committed Apr 4, 2018
1 parent c931743 commit d3e8a54
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/CMakeLists.txt
Expand Up @@ -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)
Expand Down

0 comments on commit d3e8a54

Please sign in to comment.