From: Jean-Paul Pelteret Date: Mon, 15 Jun 2020 12:31:25 +0000 (+0200) Subject: CMake: Emit error for old incompatible compilers X-Git-Tag: v9.3.0-rc1~1354^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d772efd8ebf1fca3c7b82ac8ab06ca48827b619b;p=dealii.git CMake: Emit error for old incompatible compilers --- 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." )