summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeSystemWithToolchainFile.cmake.in
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/CMakeSystemWithToolchainFile.cmake.in')
-rw-r--r--Modules/CMakeSystemWithToolchainFile.cmake.in10
1 files changed, 4 insertions, 6 deletions
diff --git a/Modules/CMakeSystemWithToolchainFile.cmake.in b/Modules/CMakeSystemWithToolchainFile.cmake.in
index cfaa037..6bf3b15 100644
--- a/Modules/CMakeSystemWithToolchainFile.cmake.in
+++ b/Modules/CMakeSystemWithToolchainFile.cmake.in
@@ -1,12 +1,10 @@
# the following file has been configured from @CMAKE_TOOLCHAIN_FILE@
INCLUDE(@_OWN_DIR@/CMakeToolchainFile.cmake)
-# 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)
+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_HOST_SYSTEM "@CMAKE_HOST_SYSTEM@")
SET(CMAKE_HOST_SYSTEM_NAME "@CMAKE_HOST_SYSTEM_NAME@")