Unverified Commit b0403a7d authored by Feng Xiao's avatar Feng Xiao Committed by GitHub

Merge pull request #4583 from chronoxor/master

Fix CMake build on Cygwin.
parents 05c2d01b f80a886b
...@@ -16,9 +16,13 @@ endif() ...@@ -16,9 +16,13 @@ endif()
project(protobuf C CXX) project(protobuf C CXX)
# Add c++11 flags # Add c++11 flags
set(CMAKE_CXX_STANDARD 11) if (CYGWIN)
set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")
set(CMAKE_CXX_EXTENSIONS OFF) else()
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
endif()
# Options # Options
option(protobuf_BUILD_TESTS "Build tests" ON) option(protobuf_BUILD_TESTS "Build tests" ON)
......
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