diff options
| author | nicole mazzuca <mazzucan@outlook.com> | 2021-03-10 15:33:16 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-10 15:33:16 -0800 |
| commit | fe2a6bb789e904520797ec229272c6c1a42e7e38 (patch) | |
| tree | cedcaf8be3521bf5e3b5ce92f2a8cb496f2615fc /scripts/buildsystems/vcpkg.cmake | |
| parent | 6ee0e916d34e45ea0b41b35c3fd8cfb7ce2455e9 (diff) | |
| download | vcpkg-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.cmake | 5 |
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}") |
