summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeSystem.cmake.in
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-05-21 15:26:40 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-05-21 15:26:40 (GMT)
commit71359f5b9dcbf2404fab4e201961d2ddc7f52ee7 (patch)
tree352431a82c46d84b1ab5a99210f8d87d6fd95805 /Modules/CMakeSystem.cmake.in
parentc8dd1caff941ac4f56bf7422437fc0982ab6043b (diff)
downloadCMake-71359f5b9dcbf2404fab4e201961d2ddc7f52ee7.zip
CMake-71359f5b9dcbf2404fab4e201961d2ddc7f52ee7.tar.gz
CMake-71359f5b9dcbf2404fab4e201961d2ddc7f52ee7.tar.bz2
STYLE: use a separate source file for generating CMakeSystem.cmake if CMAKE_TOOLCHAIN_FILE is used
Alex
Diffstat (limited to 'Modules/CMakeSystem.cmake.in')
-rw-r--r--Modules/CMakeSystem.cmake.in23
1 files changed, 4 insertions, 19 deletions
diff --git a/Modules/CMakeSystem.cmake.in b/Modules/CMakeSystem.cmake.in
index 0fbf387..785f197 100644
--- a/Modules/CMakeSystem.cmake.in
+++ b/Modules/CMakeSystem.cmake.in
@@ -1,21 +1,6 @@
-IF("@CMAKE_TOOLCHAIN_FILE@" STREQUAL "")
-
- SET(CMAKE_SYSTEM "@CMAKE_SYSTEM@")
- SET(CMAKE_SYSTEM_NAME "@CMAKE_SYSTEM_NAME@")
- SET(CMAKE_SYSTEM_VERSION "@CMAKE_SYSTEM_VERSION@")
- SET(CMAKE_SYSTEM_PROCESSOR "@CMAKE_SYSTEM_PROCESSOR@")
-
-ELSE("@CMAKE_TOOLCHAIN_FILE@" STREQUAL "")
-
- INCLUDE("@CMAKE_TOOLCHAIN_FILE@")
-
-# set CMAKE_SYSTEM to the CMAKE_SYSTEM_NAME
- SET(CMAKE_SYSTEM ${CMAKE_SYSTEM_NAME})
-# if there is a CMAKE_SYSTEM_VERSION then add a -${CMAKE_SYSTEM_VERSION}
- IF(CMAKE_SYSTEM_VERSION)
- SET(CMAKE_SYSTEM ${CMAKE_SYSTEM}-${CMAKE_SYSTEM_VERSION})
- ENDIF(CMAKE_SYSTEM_VERSION)
-
-ENDIF("@CMAKE_TOOLCHAIN_FILE@" STREQUAL "")
+SET(CMAKE_SYSTEM "@CMAKE_SYSTEM@")
+SET(CMAKE_SYSTEM_NAME "@CMAKE_SYSTEM_NAME@")
+SET(CMAKE_SYSTEM_VERSION "@CMAKE_SYSTEM_VERSION@")
+SET(CMAKE_SYSTEM_PROCESSOR "@CMAKE_SYSTEM_PROCESSOR@")
SET(CMAKE_SYSTEM_LOADED 1)