]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Emit error for old incompatible compilers
authorJean-Paul Pelteret <jppelteret@gmail.com>
Mon, 15 Jun 2020 12:31:25 +0000 (14:31 +0200)
committerJean-Paul Pelteret <jppelteret@gmail.com>
Tue, 16 Jun 2020 21:18:22 +0000 (23:18 +0200)
cmake/setup_compiler_flags_gnu.cmake

index 28b00ed5b3e3d743a38aa5a918ff3e20f78f10d6..a14a4b97174edfa10bd8eb1a3cd9763f17b4fe09 100644 (file)
@@ -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."
       )

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.