Skip to content

Commit c221d25

Browse files
committed
cmake args
1 parent a5d123d commit c221d25

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/test_and_deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
submodules: true
6464
- name: Generate sdist
6565
run: |
66-
NLE_RELEASE_BUILD=1 python setup.py sdist
66+
NLE_RELEASE_BUILD=1 CMAKE_ARGS='-DCMAKE_POLICY_VERSION_MINIMUM=3.5' python setup.py sdist
6767
- name: Install from sdist
6868
run: |
6969
SDISTNAME=$(ls dist/)
@@ -94,7 +94,7 @@ jobs:
9494
submodules: true
9595
- name: Generate sdist
9696
run: |
97-
NLE_RELEASE_BUILD=1 python setup.py sdist
97+
NLE_RELEASE_BUILD=1 CMAKE_ARGS='-DCMAKE_POLICY_VERSION_MINIMUM=3.5' python setup.py sdist
9898
- name: Install from sdist
9999
run: |
100100
SDISTNAME=$(ls dist/)
@@ -137,7 +137,7 @@ jobs:
137137
uses: pypa/[email protected] # The main configuration is in pyproject.toml
138138
env:
139139
# Set NLE_RELEASE_BUILD to 1 to build release wheels
140-
CIBW_ENVIRONMENT: "NLE_RELEASE_BUILD=1"
140+
CIBW_ENVIRONMENT: "NLE_RELEASE_BUILD=1 CMAKE_ARGS='-DCMAKE_POLICY_VERSION_MINIMUM=3.5'"
141141
- name: Save wheels
142142
uses: actions/upload-artifact@v4
143143
with:

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.5)
1+
cmake_minimum_required(VERSION 3.15)
22
file(STRINGS "version.txt" NLE_VERSION)
33
# Remove any rcXX suffix from the version number as CMake doesn't like it
44
string(REGEX REPLACE "rc[0-9+]$" "" CMAKE_NLE_VERSION ${NLE_VERSION})

0 commit comments

Comments
 (0)