Skip to content

Commit 3245228

Browse files
authored
chore: update to CMake 3.25 (#133)
Updating examples ~and built-in backport~ to 3.25. @jcfr and @thewtex, backporting was broken in 3.25 (and we need it for the SOABI fix from 3.26, and probably ABI3 if that's added, etc). See https://gitlab.kitware.com/cmake/cmake/-/issues/24185. Signed-off-by: Henry Schreiner <[email protected]>
1 parent 9e10e31 commit 3245228

File tree

12 files changed

+19
-19
lines changed

12 files changed

+19
-19
lines changed

.github/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ test = ["pytest>=6.0"]
223223
```
224224

225225
```cmake
226-
cmake_minimum_required(VERSION 3.15...3.24)
226+
cmake_minimum_required(VERSION 3.15...3.25)
227227
project("${SKBUILD_PROJECT_NAME}" LANGUAGES CXX VERSION "${SKBUILD_PROJECT_VERSION}")
228228
229229
find_package(pybind11 CONFIG REQUIRED)
@@ -266,7 +266,7 @@ build-backend = "scikit_build_core.setuptools.build_meta"
266266
```
267267

268268
```cmake
269-
cmake_minimum_required(VERSION 3.15...3.24)
269+
cmake_minimum_required(VERSION 3.15...3.25)
270270
project("${SKBUILD_PROJECT_NAME}" LANGUAGES CXX VERSION "${SKBUILD_PROJECT_VERSION}")
271271
272272
find_package(pybind11 CONFIG REQUIRED)

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ Features over classic Scikit-build:
4848
- No dependency on setuptools, distutils, or wheel in build mode.
4949
- Powerful config system, including config options support in build mode.
5050
- Automatic inclusion of site-packages in `CMAKE_PREFIX_PATH`
51-
- FindPython is backported if running on CMake < 3.24 (included via hatchling in
52-
a submodule)
51+
- FindPython is backported if running on CMake 3.24 (included via hatchling in a
52+
submodule)
5353
- Limited API / Stable ABI and pythonless tags supported via config option
5454
- No slow generator search, ninja/make or MSVC used by default, respects
5555
`CMAKE_GENERATOR`
@@ -83,7 +83,7 @@ printouts) or `pyproject` (pre-load some dependencies) extras if you want.
8383
An example `CMakeLists.txt`:
8484

8585
```cmake
86-
cmake_minimum_required(VERSION 3.15...3.24)
86+
cmake_minimum_required(VERSION 3.15...3.25)
8787
8888
project(${SKBUILD_PROJECT_NAME} LANGUAGES C VERSION ${SKBUILD_PROJECT_VERSION})
8989

extern/cmake

Submodule cmake updated 61 files

tests/packages/abi3_pyproject_ext/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.15...3.24)
1+
cmake_minimum_required(VERSION 3.15...3.25)
22

33
project(
44
${SKBUILD_PROJECT_NAME}

tests/packages/abi3_setuptools_ext/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.15...3.24)
1+
cmake_minimum_required(VERSION 3.15...3.25)
22

33
project(
44
${SKBUILD_PROJECT_NAME}

tests/packages/filepath_pure/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.15...3.24)
1+
cmake_minimum_required(VERSION 3.15...3.25)
22
project(
33
"${SKBUILD_PROJECT_NAME}"
44
LANGUAGES C

tests/packages/simple_pure/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.15...3.24)
1+
cmake_minimum_required(VERSION 3.15...3.25)
22

33
project(simple_pure LANGUAGES CXX)
44

tests/packages/simple_pyproject_ext/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.15...3.24)
1+
cmake_minimum_required(VERSION 3.15...3.25)
22
project(
33
"${SKBUILD_PROJECT_NAME}"
44
LANGUAGES CXX

tests/packages/simple_setuptools_ext/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.15...3.24)
1+
cmake_minimum_required(VERSION 3.15...3.25)
22
project(
33
"${SKBUILD_PROJECT_NAME}"
44
LANGUAGES CXX

tests/packages/simplest_c/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.15...3.24)
1+
cmake_minimum_required(VERSION 3.15...3.25)
22

33
project(
44
${SKBUILD_PROJECT_NAME}

0 commit comments

Comments
 (0)