Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,20 @@ jobs:
- name: Setup CMake
uses: lukka/get-cmake@latest

- name: Clear conflicting Qt environment (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
# The "Install Qt" step (jurplel/install-qt-action) exports QTDIR,
# Qt6_DIR and CMAKE_PREFIX_PATH into the environment. On Windows the
# build must resolve Qt from the vcpkg x64-mingw-dynamic triplet, so
# this host Qt contaminates the CMake configure and causes unresolved
# Qt symbols at link time. Blank the variables via GITHUB_ENV so they
# are cleared for the subsequent Configure CMake step.
@('Qt5_DIR', 'Qt6_DIR', 'QTDIR', 'CMAKE_PREFIX_PATH') | ForEach-Object {
"$_=" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
}

- name: Configure CMake
shell: bash
run: |
Expand Down
Loading