File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,14 @@ if(NOT CMAKE_BUILD_TYPE)
4444 set (CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build" FORCE)
4545endif (NOT CMAKE_BUILD_TYPE )
4646
47+ if (NOT DEFINED CMAKE_CXX_STANDARD)
48+ set (CMAKE_CXX_STANDARD 11)
49+ endif ()
50+
51+ if (NOT DEFINED CMAKE_CXX_EXTENSIONS)
52+ set (CMAKE_CXX_EXTENSIONS OFF )
53+ endif ()
54+
4755if (SBE_TESTS)
4856 set (SBE_THIRDPARTY_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR} /thirdparty" )
4957
@@ -73,7 +81,7 @@ endif()
7381find_package (Threads)
7482
7583if (UNIX )
76- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 - fexceptions -g -Wall -Wpedantic -Wextra -Wno-unused-parameter" )
84+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexceptions -g -Wall -Wpedantic -Wextra -Wno-unused-parameter" )
7785 set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0" )
7886 set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Ofast" )
7987endif ()
You can’t perform that action at this time.
0 commit comments