]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Error out on Cygwin platforms and derivatives (MinGW, MinGW-64) 1252/head
authorMatthias Maier <tamiko@43-1.org>
Tue, 4 Aug 2015 03:37:24 +0000 (22:37 -0500)
committerMatthias Maier <tamiko@43-1.org>
Tue, 4 Aug 2015 13:57:14 +0000 (08:57 -0500)
Let's face it - we do not support those ports of the GNU Compiler
Collection. We have had multiple severe, unresolved miscompilation issues
for years.

cmake/checks/check_02_system_features.cmake

index 6082695e28f21a97e8ef093b585de737cf683774..3fed04064950df21da1ff680c323f987c7269745 100644 (file)
@@ -105,6 +105,18 @@ ENDIF()
 #                                                                      #
 ########################################################################
 
+#
+# Put an end to user's suffering from cygwin's defects
+#
+IF( CMAKE_SYSTEM_NAME MATCHES "CYGWIN" OR
+    CMAKE_SYSTEM_NAME MATCHES "Windows" )
+  IF(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
+    MESSAGE(FATAL_ERROR
+      "\nCygwin and forks such as MinGW and MinGW-64 are unsupported due to "
+      "multiple unresolved miscompilation issues.\n\n"
+      )
+  ENDIF()
+ENDIF()
 
 IF(CMAKE_SYSTEM_NAME MATCHES "Windows")
 

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.