From 043d2e7485174ac0c36aa98c533321f8f350078c Mon Sep 17 00:00:00 2001 From: Username404 Date: Mon, 9 Aug 2021 14:39:09 +0200 Subject: [PATCH] Make the GNU compiler message a FATAL_ERROR in the CMakeLists.txt file. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0aec58b..ca52e7e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}")