From d158d25ce9568927055ab0af801492ae54e1c2b6 Mon Sep 17 00:00:00 2001 From: fhgffy <102001626+fhgffy@users.noreply.github.com> Date: Sun, 4 Oct 2026 20:40:55 +0800 Subject: [PATCH] Let CMake pick the installed Visual Studio generator in Windows CI. windows-latest no longer has Visual Studio 2022, so configuring with -G "Visual Studio 17 2022" fails before anything is built. --- .github/workflows/windows.yml | 2 +- .github/workflows/windows_shared.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index d1eb43e1..c9a524aa 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -33,7 +33,7 @@ jobs: - name: configure run: | - cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DBOOST_UT_ENABLE_RUN_AFTER_BUILD=NO -DBOOST_UT_DISABLE_MODULE=ON --log-level=DEBUG -DFETCHCONTENT_QUIET=OFF -G "Visual Studio 17 2022" -T ${{matrix.toolset}} -DCMAKE_CXX_STANDARD:STRING=${{matrix.std}} + cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DBOOST_UT_ENABLE_RUN_AFTER_BUILD=NO -DBOOST_UT_DISABLE_MODULE=ON --log-level=DEBUG -DFETCHCONTENT_QUIET=OFF -T ${{matrix.toolset}} -DCMAKE_CXX_STANDARD:STRING=${{matrix.std}} - name: build run: cmake --build build --config Debug -j4 --verbose diff --git a/.github/workflows/windows_shared.yml b/.github/workflows/windows_shared.yml index 57177c6f..32e07c8b 100644 --- a/.github/workflows/windows_shared.yml +++ b/.github/workflows/windows_shared.yml @@ -33,7 +33,7 @@ jobs: - name: configure run: | - cmake -S . -B build -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Debug -DBOOST_UT_ENABLE_RUN_AFTER_BUILD=NO -DBOOST_UT_DISABLE_MODULE=ON --log-level=DEBUG -DFETCHCONTENT_QUIET=OFF -G "Visual Studio 17 2022" -T ${{matrix.toolset}} -DCMAKE_CXX_STANDARD:STRING=${{matrix.std}} + cmake -S . -B build -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Debug -DBOOST_UT_ENABLE_RUN_AFTER_BUILD=NO -DBOOST_UT_DISABLE_MODULE=ON --log-level=DEBUG -DFETCHCONTENT_QUIET=OFF -T ${{matrix.toolset}} -DCMAKE_CXX_STANDARD:STRING=${{matrix.std}} - name: build run: cmake --build build --config Debug -j4 --verbose