Skip to content

Commit 71ec5cb

Browse files
authored
fix: fix Windows CI build failures (#273)
1 parent d8d4ef8 commit 71ec5cb

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ jobs:
6161
uses: jwlawson/actions-setup-cmake@v2
6262
with:
6363
cmake-version: '3.25.x'
64+
- name: Set up MSVC environment
65+
uses: ilammy/msvc-dev-cmd@v1
6466
- name: Configuring CMake files
6567
id: building-files
6668
run: |

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def build_extension(self, ext):
4646
f"-DCMAKE_LIBRARY_OUTPUT_DIRECTORY={extdir}",
4747
f"-DPYTHON_EXECUTABLE={sys.executable}",
4848
f"-DCMAKE_BUILD_TYPE={cfg}", # not used on MSVC, but no harm
49+
"-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
4950
]
5051
build_args = []
5152
# Adding CMake arguments set as environment variable

0 commit comments

Comments
 (0)