Skip to content

Commit 0bff35d

Browse files
committed
Stick to CMake 3.24 on Windows to work around 3.25 regression.
1 parent 3725898 commit 0bff35d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/build_wheels_windows.yml

+2
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,12 @@ jobs:
6060
- name: Setup MSBuild.exe
6161
uses: microsoft/setup-msbuild@v1.1
6262
- name: Build a package
63+
# CMake 3.25 regression fix. See https://stackoverflow.com/questions/74162633/problem-compiling-from-source-opencv-with-mvsc2019-in-64-bit-version
6364
run: |
6465
python --version
6566
python -m pip install --upgrade pip
6667
python -m pip install --upgrade setuptools
68+
python -m pip install cmake==3.24.2
6769
python -m pip install toml && python -c "import toml; c = toml.load('pyproject.toml'); print('\n'.join(c['build-system']['requires']))" >> requirements.txt | python -m pip install -r requirements.txt
6870
set "CI_BUILD=1" && python setup.py bdist_wheel --py-limited-api=cp36 --dist-dir=%cd%\wheelhouse -v
6971
shell: cmd

0 commit comments

Comments
 (0)