Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ jobs:
cmake: "3.15"

- runs-on: macos-14
cmake: "4.0"
cmake: "4.2"

- runs-on: windows-latest
cmake: "4.0"
cmake: "4.2"

name: 🐍 3.11 • CMake ${{ matrix.cmake }} • ${{ matrix.runs-on }}
runs-on: ${{ matrix.runs-on }}
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if(NOT CMAKE_VERSION VERSION_LESS "3.27")
cmake_policy(GET CMP0148 _pybind11_cmp0148)
endif()

cmake_minimum_required(VERSION 3.15...4.0)
cmake_minimum_required(VERSION 3.15...4.2)

if(_pybind11_cmp0148)
cmake_policy(SET CMP0148 ${_pybind11_cmp0148})
Expand Down
2 changes: 1 addition & 1 deletion docs/advanced/embedding.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ information, see :doc:`/compiling`.

.. code-block:: cmake

cmake_minimum_required(VERSION 3.15...4.0)
cmake_minimum_required(VERSION 3.15...4.2)
project(example)

find_package(pybind11 REQUIRED) # or `add_subdirectory(pybind11)`
Expand Down
10 changes: 5 additions & 5 deletions docs/compiling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ A Python extension module can be created with just a few lines of code:

.. code-block:: cmake

cmake_minimum_required(VERSION 3.15...4.0)
cmake_minimum_required(VERSION 3.15...4.2)
project(example LANGUAGES CXX)

set(PYBIND11_FINDPYTHON ON)
Expand Down Expand Up @@ -447,7 +447,7 @@ See the `Config file`_ docstring for details of relevant CMake variables.

.. code-block:: cmake

cmake_minimum_required(VERSION 3.15...4.0)
cmake_minimum_required(VERSION 3.15...4.2)
project(example LANGUAGES CXX)

find_package(pybind11 REQUIRED)
Expand Down Expand Up @@ -492,7 +492,7 @@ FindPython, pybind11 will detect this and use the existing targets instead:

.. code-block:: cmake

cmake_minimum_required(VERSION 3.15...4.0)
cmake_minimum_required(VERSION 3.15...4.2)
project(example LANGUAGES CXX)

find_package(Python 3.8 COMPONENTS Interpreter Development REQUIRED)
Expand Down Expand Up @@ -570,7 +570,7 @@ You can use these targets to build complex applications. For example, the

.. code-block:: cmake

cmake_minimum_required(VERSION 3.15...4.0)
cmake_minimum_required(VERSION 3.15...4.2)
project(example LANGUAGES CXX)

find_package(pybind11 REQUIRED) # or add_subdirectory(pybind11)
Expand Down Expand Up @@ -628,7 +628,7 @@ information about usage in C++, see :doc:`/advanced/embedding`.

.. code-block:: cmake

cmake_minimum_required(VERSION 3.15...4.0)
cmake_minimum_required(VERSION 3.15...4.2)
project(example LANGUAGES CXX)

find_package(pybind11 REQUIRED) # or add_subdirectory(pybind11)
Expand Down
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.

cmake_minimum_required(VERSION 3.15...4.0)
cmake_minimum_required(VERSION 3.15...4.2)

# Filter out items; print an optional message if any items filtered. This ignores extensions.
#
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cmake_build/installed_embed/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.15...4.0)
cmake_minimum_required(VERSION 3.15...4.2)

project(test_installed_embed CXX)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_cmake_build/installed_function/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.15...4.0)
cmake_minimum_required(VERSION 3.15...4.2)

project(test_installed_function CXX)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_cmake_build/installed_target/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.15...4.0)
cmake_minimum_required(VERSION 3.15...4.2)

project(test_installed_target CXX)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_cmake_build/subdirectory_embed/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.15...4.0)
cmake_minimum_required(VERSION 3.15...4.2)

project(test_subdirectory_embed CXX)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.15...4.0)
cmake_minimum_required(VERSION 3.15...4.2)

project(test_subdirectory_function CXX)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.15...4.0)
cmake_minimum_required(VERSION 3.15...4.2)

project(test_subdirectory_target CXX)

Expand Down
2 changes: 1 addition & 1 deletion tools/pybind11GuessPythonExtSuffix.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.15...4.0)
cmake_minimum_required(VERSION 3.15...4.2)

function(pybind11_guess_python_module_extension python)

Expand Down
2 changes: 1 addition & 1 deletion tools/test-pybind11GuessPythonExtSuffix.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.15...4.0)
cmake_minimum_required(VERSION 3.15...4.2)

# Tests for pybind11_guess_python_module_extension
# Run using `cmake -P tools/test-pybind11GuessPythonExtSuffix.cmake`
Expand Down
Loading