[cmake-commits] alex committed CMakeDetermineSystem.cmake 1.26 1.27 CMakeSystemSpecificInformation.cmake 1.39 1.40

cmake-commits at cmake.org cmake-commits at cmake.org
Fri Aug 10 09:07:41 EDT 2007


Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv9218/Modules

Modified Files:
	CMakeDetermineSystem.cmake 
	CMakeSystemSpecificInformation.cmake 
Log Message:

ENH: set UNIX, WIN32 and APPLE in cmMakefile.cxx as it was before, so it
works for scripts, then reset them in CMakeSystemSpecificInformation.cxx, so
the platform modules can set them again for the target system

Alex


Index: CMakeDetermineSystem.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/CMakeDetermineSystem.cmake,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- CMakeDetermineSystem.cmake	9 Aug 2007 18:45:23 -0000	1.26
+++ CMakeDetermineSystem.cmake	10 Aug 2007 13:07:39 -0000	1.27
@@ -60,19 +60,6 @@
   ENDIF(CMAKE_HOST_WIN32)
 ENDIF(CMAKE_HOST_UNIX)
 
-# this is for compatibility
-# with cmake 2.4 these variables were compiled in
-# now that cmake has to separate between host and target platform
-# two sets are needed. For compatibility the old set of variables is here 
-# set to the compiled-in values, so they still work in custom
-# language or compiler modules where they might be used.
-# After that they are reset in CMakeSystemSpecificInformation.cmake
-# and then set according to the current target platform in the Modules/${CMAKE_SYSTEM_NAME}.cmake file
-SET(APPLE  ${CMAKE_HOST_APPLE})
-SET(UNIX   ${CMAKE_HOST_UNIX})
-SET(CYGWIN ${CMAKE_HOST_CYGWIN})
-SET(WIN32  ${CMAKE_HOST_WIN32})
-
 # if a toolchain file is used, the user wants to cross compile.
 # in this case read the toolchain file and keep the CMAKE_HOST_SYSTEM_*
 # variables around so they can be used in CMakeLists.txt. 

Index: CMakeSystemSpecificInformation.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/CMakeSystemSpecificInformation.cmake,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- CMakeSystemSpecificInformation.cmake	9 Aug 2007 18:45:23 -0000	1.39
+++ CMakeSystemSpecificInformation.cmake	10 Aug 2007 13:07:39 -0000	1.40
@@ -3,11 +3,11 @@
 # It is included after the compiler has been determined, so
 # we know things like the compiler name and if the compiler is gnu.
 
-# before cmake 2.6 these variables were compiled-in in cmake
-# now they are set in the Modules/${CMAKE_SYSTEM_NAME}.cmake file
-# In order to keep custom language or compiler files working which might use
-# these variables, they are set to the value of the compiled-in variables in
-# CMakeDetermineSystem.cmake and reset here.
+# before cmake 2.6 these variables were set in cmMakefile.cxx. This is still
+# done to keep scripts and custom language and compiler modules working.
+# But they are reset here and set again in the platform files for the target
+# platform, so they can be used for testing the target platform instead
+# of testing the host platform.
 SET(APPLE  )
 SET(UNIX   )
 SET(CYGWIN )



More information about the Cmake-commits mailing list