diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-05-29 15:36:07 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-05-29 15:36:07 (GMT) |
commit | eed7c8dec14a37660ed0bf74cac3bfd0221c1f5b (patch) | |
tree | 11ea16396d43457af188ba90237ed12b196f26cf /Modules/CMakeSystemWithToolchainFile.cmake.in | |
parent | cfee916b7c90bafa372ff86f2b21d5800fc8bc99 (diff) | |
download | CMake-eed7c8dec14a37660ed0bf74cac3bfd0221c1f5b.zip CMake-eed7c8dec14a37660ed0bf74cac3bfd0221c1f5b.tar.gz CMake-eed7c8dec14a37660ed0bf74cac3bfd0221c1f5b.tar.bz2 |
ENH: always provide CMAKE_SYSTEM_XXX() and MAKE_HOST_SYSTEM_XXX() variables,
so when cross compiling the build host platform can be tested
Alex
Diffstat (limited to 'Modules/CMakeSystemWithToolchainFile.cmake.in')
-rw-r--r-- | Modules/CMakeSystemWithToolchainFile.cmake.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/CMakeSystemWithToolchainFile.cmake.in b/Modules/CMakeSystemWithToolchainFile.cmake.in index e308956..cfaa037 100644 --- a/Modules/CMakeSystemWithToolchainFile.cmake.in +++ b/Modules/CMakeSystemWithToolchainFile.cmake.in @@ -8,4 +8,10 @@ IF(CMAKE_SYSTEM_VERSION) SET(CMAKE_SYSTEM ${CMAKE_SYSTEM}-${CMAKE_SYSTEM_VERSION}) ENDIF(CMAKE_SYSTEM_VERSION) +SET(CMAKE_HOST_SYSTEM "@CMAKE_HOST_SYSTEM@") +SET(CMAKE_HOST_SYSTEM_NAME "@CMAKE_HOST_SYSTEM_NAME@") +SET(CMAKE_HOST_SYSTEM_VERSION "@CMAKE_HOST_SYSTEM_VERSION@") +SET(CMAKE_HOST_SYSTEM_PROCESSOR "@CMAKE_HOST_SYSTEM_PROCESSOR@") +SET(CMAKE_CROSSCOMPILING "@CMAKE_CROSSCOMPILING@") + SET(CMAKE_SYSTEM_LOADED 1) |