BUG: fix compiler id test on cygwin

Alex
This commit is contained in:
Alexander Neundorf 2007-08-10 09:20:14 -04:00
parent 512e0d40ef
commit 40e55ab780
1 changed files with 2 additions and 2 deletions

View File

@ -6,13 +6,13 @@
MACRO(CMAKE_DETERMINE_COMPILER_ID lang flagvar src) MACRO(CMAKE_DETERMINE_COMPILER_ID lang flagvar src)
# Store the compiler identification source file. # Store the compiler identification source file.
SET(CMAKE_${lang}_COMPILER_ID_SRC "${src}") 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: # This seems to escape spaces:
#FILE(TO_NATIVE_PATH "${CMAKE_${lang}_COMPILER_ID_SRC}" #FILE(TO_NATIVE_PATH "${CMAKE_${lang}_COMPILER_ID_SRC}"
# CMAKE_${lang}_COMPILER_ID_SRC) # CMAKE_${lang}_COMPILER_ID_SRC)
STRING(REGEX REPLACE "/" "\\\\" CMAKE_${lang}_COMPILER_ID_SRC STRING(REGEX REPLACE "/" "\\\\" CMAKE_${lang}_COMPILER_ID_SRC
"${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. # Make sure user-specified compiler flags are used.
IF(CMAKE_${lang}_FLAGS) IF(CMAKE_${lang}_FLAGS)