aboutsummaryrefslogtreecommitdiff
path: root/scripts/toolchains/linux.cmake
diff options
context:
space:
mode:
authorTsukasa Sugiura <t.sugiura0204@gmail.com>2018-11-21 08:51:32 +0900
committerRobert Schumacher <roschuma@microsoft.com>2018-11-20 15:51:32 -0800
commit83af530a42011130b20a5080bbd298abaa77be59 (patch)
tree640a2c660bcf26643ac5c3a0a4291a9727999de4 /scripts/toolchains/linux.cmake
parent35ea46995b6a3b384b4a76d613ac29d7d001b51a (diff)
downloadvcpkg-83af530a42011130b20a5080bbd298abaa77be59.tar.gz
vcpkg-83af530a42011130b20a5080bbd298abaa77be59.zip
WIP [vcpkg] Fix CMAKE_SYSTEM_PROCESSOR with UWP and Linux triplets (#4688)
* [vcpkg] Fix CMAKE_SYSTEM_PROCESSOR Add CMAKE_SYSTEM_PROCESSOR setting under UWP, Linux, and Darwin. If explicitly specified VCPKG_CMAKE_SYSTEM_PROCESSOR in triplet files, CMAKE_SYSTEM_PROCESSOR is set to specified architecture. * [vcpkg-toolchains] Move logic out of vcpkg_configure_cmake and into the toolchains.
Diffstat (limited to 'scripts/toolchains/linux.cmake')
-rw-r--r--scripts/toolchains/linux.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/toolchains/linux.cmake b/scripts/toolchains/linux.cmake
index ade9db90b..d740a5b8c 100644
--- a/scripts/toolchains/linux.cmake
+++ b/scripts/toolchains/linux.cmake
@@ -1,5 +1,10 @@
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux")
set(CMAKE_CROSSCOMPILING OFF CACHE BOOL "")
+
+ # TODO: This should be replaced with a switch on VCPKG_TARGET_ARCHITECTURE once we know what linux systems "natively" define for each of the targets
+ set(CMAKE_SYSTEM_PROCESSOR "${CMAKE_HOST_SYSTEM_PROCESSOR}" CACHE STRING "")
+else()
+ set(CMAKE_SYSTEM_PROCESSOR "x86_64" CACHE STRING "")
endif()
set(CMAKE_SYSTEM_NAME Linux CACHE STRING "")