From bc84303d262ecc7cc3e9ed9e88d8a2edba8b15f3 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Mon, 3 Aug 2015 22:37:24 -0500 Subject: [PATCH] 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. --- cmake/checks/check_02_system_features.cmake | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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") -- 2.39.5