diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-08-10 13:20:14 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-08-10 13:20:14 (GMT) |
commit | 40e55ab780428e132c06fb079c9cdf4865cb39d8 (patch) | |
tree | 344acf83646c21abd7942657f8a7f0cdb5f93ec2 | |
parent | 512e0d40efbefefdd8296bbdb84be56597b072f2 (diff) | |
download | CMake-40e55ab780428e132c06fb079c9cdf4865cb39d8.zip CMake-40e55ab780428e132c06fb079c9cdf4865cb39d8.tar.gz CMake-40e55ab780428e132c06fb079c9cdf4865cb39d8.tar.bz2 |
BUG: fix compiler id test on cygwin
Alex
-rw-r--r-- | Modules/CMakeDetermineCompilerId.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake index 4179a49..f212c5d 100644 --- a/Modules/CMakeDetermineCompilerId.cmake +++ b/Modules/CMakeDetermineCompilerId.cmake @@ -6,13 +6,13 @@ MACRO(CMAKE_DETERMINE_COMPILER_ID lang flagvar src) # Store the compiler identification source file. SET(CMAKE_${lang}_COMPILER_ID_SRC "${src}") - IF(CMAKE_HOST_WIN32 AND NOT CMAKE_HOST_CYGWIN) + IF(CMAKE_HOST_WIN32 AND NOT CMAKE_HOST_UNIX) # This seems to escape spaces: #FILE(TO_NATIVE_PATH "${CMAKE_${lang}_COMPILER_ID_SRC}" # CMAKE_${lang}_COMPILER_ID_SRC) STRING(REGEX REPLACE "/" "\\\\" CMAKE_${lang}_COMPILER_ID_SRC "${CMAKE_${lang}_COMPILER_ID_SRC}") - ENDIF(CMAKE_HOST_WIN32 AND NOT CMAKE_HOST_CYGWIN) + ENDIF(CMAKE_HOST_WIN32 AND NOT CMAKE_HOST_UNIX) # Make sure user-specified compiler flags are used. IF(CMAKE_${lang}_FLAGS) |