Skip to content

Commit d27fdaa

Browse files
authored
chore: update for CMake 4.0 (#5593)
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
1 parent e03ec30 commit d27fdaa

File tree

12 files changed

+16
-16
lines changed

12 files changed

+16
-16
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if(NOT CMAKE_VERSION VERSION_LESS "3.27")
1010
cmake_policy(GET CMP0148 _pybind11_cmp0148)
1111
endif()
1212

13-
cmake_minimum_required(VERSION 3.15...3.30)
13+
cmake_minimum_required(VERSION 3.15...4.0)
1414

1515
if(_pybind11_cmp0148)
1616
cmake_policy(SET CMP0148 ${_pybind11_cmp0148})

docs/advanced/embedding.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ information, see :doc:`/compiling`.
1818

1919
.. code-block:: cmake
2020
21-
cmake_minimum_required(VERSION 3.15...3.30)
21+
cmake_minimum_required(VERSION 3.15...4.0)
2222
project(example)
2323
2424
find_package(pybind11 REQUIRED) # or `add_subdirectory(pybind11)`

docs/compiling.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ A Python extension module can be created with just a few lines of code:
1818

1919
.. code-block:: cmake
2020
21-
cmake_minimum_required(VERSION 3.15...3.30)
21+
cmake_minimum_required(VERSION 3.15...4.0)
2222
project(example LANGUAGES CXX)
2323
2424
set(PYBIND11_FINDPYTHON ON)
@@ -447,7 +447,7 @@ See the `Config file`_ docstring for details of relevant CMake variables.
447447

448448
.. code-block:: cmake
449449
450-
cmake_minimum_required(VERSION 3.15...3.30)
450+
cmake_minimum_required(VERSION 3.15...4.0)
451451
project(example LANGUAGES CXX)
452452
453453
find_package(pybind11 REQUIRED)
@@ -492,7 +492,7 @@ FindPython, pybind11 will detect this and use the existing targets instead:
492492

493493
.. code-block:: cmake
494494
495-
cmake_minimum_required(VERSION 3.15...3.30)
495+
cmake_minimum_required(VERSION 3.15...4.0)
496496
project(example LANGUAGES CXX)
497497
498498
find_package(Python 3.8 COMPONENTS Interpreter Development REQUIRED)
@@ -570,7 +570,7 @@ You can use these targets to build complex applications. For example, the
570570

571571
.. code-block:: cmake
572572
573-
cmake_minimum_required(VERSION 3.15...3.30)
573+
cmake_minimum_required(VERSION 3.15...4.0)
574574
project(example LANGUAGES CXX)
575575
576576
find_package(pybind11 REQUIRED) # or add_subdirectory(pybind11)
@@ -628,7 +628,7 @@ information about usage in C++, see :doc:`/advanced/embedding`.
628628

629629
.. code-block:: cmake
630630
631-
cmake_minimum_required(VERSION 3.15...3.30)
631+
cmake_minimum_required(VERSION 3.15...4.0)
632632
project(example LANGUAGES CXX)
633633
634634
find_package(pybind11 REQUIRED) # or add_subdirectory(pybind11)

tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# All rights reserved. Use of this source code is governed by a
66
# BSD-style license that can be found in the LICENSE file.
77

8-
cmake_minimum_required(VERSION 3.15...3.30)
8+
cmake_minimum_required(VERSION 3.15...4.0)
99

1010
# Filter out items; print an optional message if any items filtered. This ignores extensions.
1111
#

tests/test_cmake_build/installed_embed/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.30)
1+
cmake_minimum_required(VERSION 3.15...4.0)
22

33
project(test_installed_embed CXX)
44

tests/test_cmake_build/installed_function/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.30)
1+
cmake_minimum_required(VERSION 3.15...4.0)
22

33
project(test_installed_function CXX)
44

tests/test_cmake_build/installed_target/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.30)
1+
cmake_minimum_required(VERSION 3.15...4.0)
22

33
project(test_installed_target CXX)
44

tests/test_cmake_build/subdirectory_embed/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.30)
1+
cmake_minimum_required(VERSION 3.15...4.0)
22

33
project(test_subdirectory_embed CXX)
44

tests/test_cmake_build/subdirectory_function/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.30)
1+
cmake_minimum_required(VERSION 3.15...4.0)
22

33
project(test_subdirectory_function CXX)
44

tests/test_cmake_build/subdirectory_target/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.30)
1+
cmake_minimum_required(VERSION 3.15...4.0)
22

33
project(test_subdirectory_target CXX)
44

0 commit comments

Comments
 (0)