Skip to content

Commit 91da9d0

Browse files
committed
Pass Qt to vcpkg-workspace.cmake with --qt-dir in place of the environment variable QT_DIR
1 parent 7da6d1b commit 91da9d0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎.github/actions/initialize-vcpkg/action.yml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ runs:
3737
- name: Install vcpkg dependencies
3838
env:
3939
USE_CACHE: ${{ inputs.use_cache }}
40-
QT_DIR: ${{ env.QT_ROOT_DIR }}/lib/cmake/Qt6
4140
VCPKG_KEEP_ENV_VARS: "VCPKG_BUILD_TYPE;MACOSX_DEPLOYMENT_TARGET"
4241
DEV_SCRIPTS_REF: ${{ env.DEV_SCRIPTS_REF || 'main' }}
4342
shell: pwsh
@@ -49,7 +48,7 @@ runs:
4948
# vcpkg-workspace.cmake is not part of the repository, see scripts/.gitignore
5049
Invoke-WebRequest -OutFile scripts/vcpkg-workspace.cmake `
5150
"https://raw.githubusercontent.com/stdware/dev-scripts/$env:DEV_SCRIPTS_REF/scripts/vcpkg-workspace.cmake"
52-
$arguments = @('-P', 'scripts/vcpkg-workspace.cmake', 'install')
51+
$arguments = @('-P', 'scripts/vcpkg-workspace.cmake', 'install', '--qt-dir', $env:QT_ROOT_DIR)
5352
if ($env:USE_CACHE -ne 'true') {
5453
$env:VCPKG_BINARY_SOURCES = 'clear'
5554
'VCPKG_BINARY_SOURCES=clear' >> $env:GITHUB_ENV

0 commit comments

Comments
 (0)