From: Matthias Maier Date: Tue, 4 Aug 2015 03:37:24 +0000 (-0500) Subject: CMake: Error out on Cygwin platforms and derivatives (MinGW, MinGW-64) X-Git-Tag: v8.4.0-rc2~683^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc84303d262ecc7cc3e9ed9e88d8a2edba8b15f3;p=dealii.git CMake: Error out on Cygwin platforms and derivatives (MinGW, MinGW-64) 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. --- diff --git a/cmake/checks/check_02_system_features.cmake b/cmake/checks/check_02_system_features.cmake index 6082695e28..3fed040649 100644 --- a/cmake/checks/check_02_system_features.cmake +++ b/cmake/checks/check_02_system_features.cmake @@ -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")