summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineCCompiler.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-08-21 20:22:23 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-08-21 20:22:23 (GMT)
commita413160fecc73bf61fccff9b74d6e18349eeb861 (patch)
tree5cbc485d7850ebc5200d8f094ba1559b1bc202e8 /Modules/CMakeDetermineCCompiler.cmake
parent0270b60b8f32c0da9bbe66ebee6aea92ab177c3c (diff)
downloadCMake-a413160fecc73bf61fccff9b74d6e18349eeb861.zip
CMake-a413160fecc73bf61fccff9b74d6e18349eeb861.tar.gz
CMake-a413160fecc73bf61fccff9b74d6e18349eeb861.tar.bz2
ENH: add the unix makefile generator as an option from the windows GUI, this builds with mingw, cygwin, and combinations of make cl, bcc32
Diffstat (limited to 'Modules/CMakeDetermineCCompiler.cmake')
-rw-r--r--Modules/CMakeDetermineCCompiler.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/CMakeDetermineCCompiler.cmake b/Modules/CMakeDetermineCCompiler.cmake
index e85b2f0..230c132 100644
--- a/Modules/CMakeDetermineCCompiler.cmake
+++ b/Modules/CMakeDetermineCCompiler.cmake
@@ -59,6 +59,13 @@ IF(NOT CMAKE_COMPILER_RETURN)
"Determining if the C compiler is GNU failed with "
"the following output:\n${CMAKE_COMPILER_OUTPUT}\n\n")
ENDIF("${CMAKE_COMPILER_OUTPUT}" MATCHES ".*THIS_IS_GNU.*" )
+ IF("${CMAKE_COMPILER_OUTPUT}" MATCHES ".*THIS_IS_MINGW.*" )
+ SET(CMAKE_COMPILER_IS_MINGW 1)
+ ENDIF("${CMAKE_COMPILER_OUTPUT}" MATCHES ".*THIS_IS_MINGW.*" )
+ IF("${CMAKE_COMPILER_OUTPUT}" MATCHES ".*THIS_IS_CYGWIN.*" )
+ SET(CMAKE_COMPILER_IS_CYGWIN 1)
+ ENDIF("${CMAKE_COMPILER_OUTPUT}" MATCHES ".*THIS_IS_CYGWIN.*" )
+
ENDIF(NOT CMAKE_COMPILER_RETURN)