Make the GNU compiler message a FATAL_ERROR in the CMakeLists.txt file.
This commit is contained in:
parent
3b991da962
commit
043d2e7485
|
@ -47,7 +47,7 @@ endif()
|
|||
|
||||
if (${CMAKE_CXX_COMPILER_ID} STREQUAL GNU)
|
||||
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 11.0)
|
||||
message(WARNING "A GNU compiler version of preferably 11 or higher should be used.")
|
||||
message(FATAL_ERROR "A GNU compiler version of preferably 11 or higher is required.")
|
||||
endif()
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -fira-loop-pressure -ftree-loop-distribution -floop-interchange -fipa-pta -fivopts -s")
|
||||
set(CMAKE_CXX_FLAGS "-fno-use-linker-plugin -fwhole-program ${CMAKE_CXX_FLAGS}")
|
||||
|
|
Loading…
Reference in New Issue