From d772efd8ebf1fca3c7b82ac8ab06ca48827b619b Mon Sep 17 00:00:00 2001 From: Jean-Paul Pelteret Date: Mon, 15 Jun 2020 14:31:25 +0200 Subject: [PATCH] CMake: Emit error for old incompatible compilers --- cmake/setup_compiler_flags_gnu.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/setup_compiler_flags_gnu.cmake b/cmake/setup_compiler_flags_gnu.cmake index 28b00ed5b3..a14a4b9717 100644 --- a/cmake/setup_compiler_flags_gnu.cmake +++ b/cmake/setup_compiler_flags_gnu.cmake @@ -22,7 +22,7 @@ IF( CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.9" ) - MESSAGE(WARNING "\n" + MESSAGE(FATAL_ERROR "\n" "deal.II requires support for features of C++14 that are not present in\n" "versions of GCC prior to 4.9." ) @@ -30,7 +30,7 @@ ENDIF() IF( CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.0" ) - MESSAGE(WARNING "\n" + MESSAGE(FATAL_ERROR "\n" "deal.II requires support for features of C++14 that are not present in\n" "versions of Clang prior to 4.0." ) @@ -41,7 +41,7 @@ ENDIF() IF (POLICY CMP0025) IF( CMAKE_CXX_COMPILER_ID MATCHES "AppleClang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "9.0" ) - MESSAGE(WARNING "\n" + MESSAGE(FATAL_ERROR "\n" "deal.II requires support for features of C++14 that are not present in\n" "versions of AppleClang prior to 9.0." ) -- 2.39.5