aboutsummaryrefslogtreecommitdiff
path: root/scripts/buildsystems/vcpkg.cmake
diff options
context:
space:
mode:
authornicole mazzuca <mazzucan@outlook.com>2021-03-10 15:33:16 -0800
committerGitHub <noreply@github.com>2021-03-10 15:33:16 -0800
commitfe2a6bb789e904520797ec229272c6c1a42e7e38 (patch)
treecedcaf8be3521bf5e3b5ce92f2a8cb496f2615fc /scripts/buildsystems/vcpkg.cmake
parent6ee0e916d34e45ea0b41b35c3fd8cfb7ce2455e9 (diff)
downloadvcpkg-fe2a6bb789e904520797ec229272c6c1a42e7e38.tar.gz
vcpkg-fe2a6bb789e904520797ec229272c6c1a42e7e38.zip
[host dependencies] add support in the scripts (#16627)
This contains all the docs and scripts changes from #16479, without any of the ports changes, for easier CR
Diffstat (limited to 'scripts/buildsystems/vcpkg.cmake')
-rw-r--r--scripts/buildsystems/vcpkg.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/buildsystems/vcpkg.cmake b/scripts/buildsystems/vcpkg.cmake
index c830644e9..9bdf6573e 100644
--- a/scripts/buildsystems/vcpkg.cmake
+++ b/scripts/buildsystems/vcpkg.cmake
@@ -578,6 +578,11 @@ if(VCPKG_MANIFEST_MODE AND VCPKG_MANIFEST_INSTALL AND NOT Z_VCPKG_CMAKE_IN_TRY_C
message(STATUS "Running vcpkg install")
set(Z_VCPKG_ADDITIONAL_MANIFEST_PARAMS)
+
+ if(DEFINED VCPKG_HOST_TRIPLET AND NOT VCPKG_HOST_TRIPLET STREQUAL "")
+ list(APPEND Z_VCPKG_ADDITIONAL_MANIFEST_PARAMS "--host-triplet=${VCPKG_HOST_TRIPLET}")
+ endif()
+
if(VCPKG_OVERLAY_PORTS)
foreach(Z_VCPKG_OVERLAY_PORT IN LISTS VCPKG_OVERLAY_PORTS)
list(APPEND Z_VCPKG_ADDITIONAL_MANIFEST_PARAMS "--overlay-ports=${Z_VCPKG_OVERLAY_PORT}")