summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineCompilerId.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-08-09 18:45:23 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-08-09 18:45:23 (GMT)
commit176fe63d151d60e90edd4bd01eaac7d1b74241cd (patch)
treed6967d87757696ce05396c62f75e98da63f9b91c /Modules/CMakeDetermineCompilerId.cmake
parent9bd32386c266c906c1a4c02964dfa68292c4ab12 (diff)
downloadCMake-176fe63d151d60e90edd4bd01eaac7d1b74241cd.zip
CMake-176fe63d151d60e90edd4bd01eaac7d1b74241cd.tar.gz
CMake-176fe63d151d60e90edd4bd01eaac7d1b74241cd.tar.bz2
ENH: UNIX, CYGWIN, WIN32, APPLE, QNXNTO and BEOS are not longer set in
cmMakefile.cxx, but now in the platform files and are now valid for the target platform, not the host platform. New variables CMAKE_HOST_WIN32, CMAKE_HOST_UNIX, CMAKE_HOST_APPLE and CMAKE_HOST_CYGWIN have been added in cmMakefile.cxx (...and have now to be used in all cmake files which are executed before CMakeSystemSpecificInformation.cmake is loaded). For compatibility the old set is set to the new one in CMakeDetermineSystem.cmake and reset before the system platform files are loaded, so custom language or compiler modules which use these should still work. Alex
Diffstat (limited to 'Modules/CMakeDetermineCompilerId.cmake')
-rw-r--r--Modules/CMakeDetermineCompilerId.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake
index 9418293..4179a49 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(WIN32 AND NOT CYGWIN)
+ IF(CMAKE_HOST_WIN32 AND NOT CMAKE_HOST_CYGWIN)
# 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(WIN32 AND NOT CYGWIN)
+ ENDIF(CMAKE_HOST_WIN32 AND NOT CMAKE_HOST_CYGWIN)
# Make sure user-specified compiler flags are used.
IF(CMAKE_${lang}_FLAGS)