summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Windows.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/Platform/Windows.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/Platform/Windows.cmake')
-rw-r--r--Modules/Platform/Windows.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Platform/Windows.cmake b/Modules/Platform/Windows.cmake
index bf958d9..09cb8d3 100644
--- a/Modules/Platform/Windows.cmake
+++ b/Modules/Platform/Windows.cmake
@@ -1,3 +1,5 @@
+SET(WIN32 1)
+
SET(CMAKE_STATIC_LIBRARY_PREFIX "")
SET(CMAKE_STATIC_LIBRARY_SUFFIX ".lib")
SET(CMAKE_SHARED_LIBRARY_PREFIX "") # lib