We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f721a8 commit f058208Copy full SHA for f058208
CMakeLists.txt
@@ -11,6 +11,12 @@ if(CCACHE_FOUND)
11
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
12
endif(CCACHE_FOUND)
13
14
+if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
15
+ if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0)
16
+ message(FATAL_ERROR "Building with a gcc version less than 7.0 is not supported.")
17
+ endif()
18
+endif()
19
+
20
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive --std=c++17")
21
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive") This is for the future versions
22
#set(CMAKE_CXX_STANDARD 14) #Otherwise adds -std=gnu++11 and breaks successful building
0 commit comments