aboutsummaryrefslogtreecommitdiff
path: root/scripts/toolchains/linux.cmake
diff options
context:
space:
mode:
authordan-shaw <51385773+dan-shaw@users.noreply.github.com>2019-06-14 13:09:38 -0700
committerRobert Schumacher <roschuma@microsoft.com>2019-06-14 13:09:38 -0700
commit9cc9978c5bcbe24cb75bc906a1d714a23f09a077 (patch)
tree5788ed50dbaac41686d394ed663666adffedb152 /scripts/toolchains/linux.cmake
parent8c288f4bf85338861b7ac9c6516dcc207972d5b4 (diff)
downloadvcpkg-9cc9978c5bcbe24cb75bc906a1d714a23f09a077.tar.gz
vcpkg-9cc9978c5bcbe24cb75bc906a1d714a23f09a077.zip
set CMAKE_SYSTEM_PROCESSOR in Linux (#6872)
* add vcpkg_target_architecture to vcpkg_configure_cmake * modify shogun and thrift * update glbinding
Diffstat (limited to 'scripts/toolchains/linux.cmake')
-rw-r--r--scripts/toolchains/linux.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/toolchains/linux.cmake b/scripts/toolchains/linux.cmake
index b9cbc0ff3..70f224da9 100644
--- a/scripts/toolchains/linux.cmake
+++ b/scripts/toolchains/linux.cmake
@@ -4,6 +4,9 @@ if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux")
set(CMAKE_CROSSCOMPILING OFF CACHE BOOL "")
endif()
set(CMAKE_SYSTEM_NAME Linux CACHE STRING "")
+if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
+ set(CMAKE_SYSTEM_PROCESSOR x86_64 CACHE STRING "")
+endif()
get_property( _CMAKE_IN_TRY_COMPILE GLOBAL PROPERTY IN_TRY_COMPILE )
if(NOT _CMAKE_IN_TRY_COMPILE)