diff --git a/build-cmake/CMakeLists.txt b/build-cmake/CMakeLists.txt index 1fad2de..13a556a 100644 --- a/build-cmake/CMakeLists.txt +++ b/build-cmake/CMakeLists.txt @@ -66,6 +66,10 @@ if (MSVC AND MSVC_STATIC_BUILD) endif(${flag_var} MATCHES "/MD") endforeach(flag_var) endif (MSVC AND MSVC_STATIC_BUILD) + +SET(CMAKE_CXX_STANDARD 11) +SET(CMAKE_CXX_STANDARD_REQUIRED ON) +SET(CMAKE_CXX_EXTENSIONS OFF) FILE(GLOB PROTOC_GEN_C_SRC ${MAIN_DIR}/protoc-c/*.h ${MAIN_DIR}/protoc-c/*.cc ) ADD_EXECUTABLE(protoc-gen-c ${PROTOC_GEN_C_SRC})