Unverified Commit d3e8a540 authored by Silver Chan's avatar Silver Chan Committed by GitHub

Fix problem: cmake build failed in c++11 by clang

CMakeLists.txt adds c++11 flags for clang
parent c9317434
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment