Skip to content

Commit 1ec42d5

Browse files
committed
[build] Fix VS toolset detection for CUDA builds
scikit-build was incorrectly auto-detecting toolset v144, which doesn't exist. Force CMAKE_GENERATOR_TOOLSET=v143 for VS 2022 compatibility.
1 parent c3c161b commit 1ec42d5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/build_wheels_windows.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ jobs:
7272
OPENCV_TEST_DATA_PATH: ${{ github.workspace }}\opencv_extra\testdata
7373
CUDA_ARCH_BIN: ${{ matrix.cuda-arch-bin }}
7474
CUDA_ARCH_PTX: ${{ matrix.cuda-arch-ptx }}
75+
# Force VS 2022 toolset - scikit-build incorrectly detects v144 which doesn't exist
76+
CMAKE_GENERATOR_TOOLSET: v143
7577
steps:
7678
- name: Cleanup
7779
shell: bash

0 commit comments

Comments
 (0)