diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 35c0fde9..afda2965 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,6 +61,8 @@ jobs: uses: jwlawson/actions-setup-cmake@v2 with: cmake-version: '3.25.x' + - name: Set up MSVC environment + uses: ilammy/msvc-dev-cmd@v1 - name: Configuring CMake files id: building-files run: | diff --git a/setup.py b/setup.py index 46be2876..b3bd835c 100644 --- a/setup.py +++ b/setup.py @@ -46,6 +46,7 @@ def build_extension(self, ext): f"-DCMAKE_LIBRARY_OUTPUT_DIRECTORY={extdir}", f"-DPYTHON_EXECUTABLE={sys.executable}", f"-DCMAKE_BUILD_TYPE={cfg}", # not used on MSVC, but no harm + "-DCMAKE_POLICY_VERSION_MINIMUM=3.5", ] build_args = [] # Adding CMake arguments set as environment variable