Specify VCPKG_INSTALLED_DIR, VCPKG_HOST_TRIPLET, VCPGK_TARGET_TRIPLET

Set the VCPKG_INSTALLED_DIR, VCPKG_HOST_TRIPLET, VCPGK_TARGET_TRIPLET
environment variables after vcpkg ports installation. These variables
will be used when building Qt modules to setup the correct build
environment.

Change-Id: I3a625f4ef089b5da676b96a5bebaacfb09112ee4
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Alexey Edelev
2025-02-05 15:49:27 +01:00
committed by Alexandru Croitor
parent d485277f35
commit f41e72adc6
11 changed files with 95 additions and 20 deletions

View File

@@ -20,6 +20,8 @@ Copy-Item -Path "$vcpkginstallroot\*" -Destination "$vcpkgRoot\installed" -Recur
Run-Executable "cmake" "-DVCPKG_EXECUTABLE=$vcpkgExe -DVCPKG_INSTALL_ROOT=$vcpkgInstallRoot -DOUTPUT=$env:USERPROFILE\versions.txt -P $PSScriptRoot\..\shared\vcpkg_parse_packages.cmake"
Set-EnvironmentVariable "VCPKG_INSTALLED_DIR" "$vcpkgRoot\installed"
Remove-Item -Path "$vcpkginstallroot" -Recurse -Force
Set-Location "$PSScriptRoot"