We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4ebe01 commit b9a9262Copy full SHA for b9a9262
CMakeLists.txt
@@ -25,10 +25,12 @@ if (${CMAKE_CXX_COMPILER_ID} MATCHES GNU)
25
CHECK_CXX_COMPILER_FLAG(-std=c++0x HAVE_STD0X)
26
CHECK_CXX_COMPILER_FLAG(-std=c++11 HAVE_STD11)
27
28
- if (NOT HAVE_STD0X)
29
- if (NOT HAVE_STD11)
30
- message(FATAL_ERROR "No advanced standard C++ support (-std=c++0x and -std=c++11 not defined).")
31
- endif()
+ if (HAVE_STD11)
+ set(CMAKE_CXX_FLAGS -std=c++11)
+ elseif (HAVE_STD0X)
+ set(CMAKE_CXX_FLAGS -std=c++0x)
32
+ else()
33
+ message(FATAL_ERROR "No advanced standard C++ support (-std=c++0x and -std=c++11 not defined).")
34
endif()
35
36
0 commit comments