Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
7f2214bc
Unverified
Commit
7f2214bc
authored
Mar 27, 2024
by
Henry Schreiner
Committed by
GitHub
Mar 27, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: bump cmake to 3.29 (#5075)
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
parent
7af193e7
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
29 additions
and
29 deletions
+29
-29
.github/workflows/configure.yml
+1
-1
CMakeLists.txt
+3
-3
docs/advanced/embedding.rst
+1
-1
docs/compiling.rst
+3
-3
tests/CMakeLists.txt
+3
-3
tests/test_cmake_build/installed_embed/CMakeLists.txt
+3
-3
tests/test_cmake_build/installed_function/CMakeLists.txt
+3
-3
tests/test_cmake_build/installed_target/CMakeLists.txt
+3
-3
tests/test_cmake_build/subdirectory_embed/CMakeLists.txt
+3
-3
tests/test_cmake_build/subdirectory_function/CMakeLists.txt
+3
-3
tests/test_cmake_build/subdirectory_target/CMakeLists.txt
+3
-3
No files found.
.github/workflows/configure.yml
View file @
7f2214bc
...
@@ -35,7 +35,7 @@ jobs:
...
@@ -35,7 +35,7 @@ jobs:
-
runs-on
:
ubuntu-20.04
-
runs-on
:
ubuntu-20.04
arch
:
x64
arch
:
x64
cmake
:
"
3.2
7
"
cmake
:
"
3.2
9
"
-
runs-on
:
macos-latest
-
runs-on
:
macos-latest
arch
:
x64
arch
:
x64
...
...
CMakeLists.txt
View file @
7f2214bc
...
@@ -12,13 +12,13 @@ endif()
...
@@ -12,13 +12,13 @@ endif()
cmake_minimum_required
(
VERSION 3.5
)
cmake_minimum_required
(
VERSION 3.5
)
# The `cmake_minimum_required(VERSION 3.5...3.2
7
)` syntax does not work with
# The `cmake_minimum_required(VERSION 3.5...3.2
9
)` syntax does not work with
# some versions of VS that have a patched CMake 3.11. This forces us to emulate
# some versions of VS that have a patched CMake 3.11. This forces us to emulate
# the behavior using the following workaround:
# the behavior using the following workaround:
if
(
${
CMAKE_VERSION
}
VERSION_LESS 3.2
7
)
if
(
${
CMAKE_VERSION
}
VERSION_LESS 3.2
9
)
cmake_policy
(
VERSION
${
CMAKE_MAJOR_VERSION
}
.
${
CMAKE_MINOR_VERSION
}
)
cmake_policy
(
VERSION
${
CMAKE_MAJOR_VERSION
}
.
${
CMAKE_MINOR_VERSION
}
)
else
()
else
()
cmake_policy
(
VERSION 3.2
7
)
cmake_policy
(
VERSION 3.2
9
)
endif
()
endif
()
if
(
_pybind11_cmp0148
)
if
(
_pybind11_cmp0148
)
...
...
docs/advanced/embedding.rst
View file @
7f2214bc
...
@@ -18,7 +18,7 @@ information, see :doc:`/compiling`.
...
@@ -18,7 +18,7 @@ information, see :doc:`/compiling`.
.. code-block:: cmake
.. code-block:: cmake
cmake_minimum_required(VERSION 3.5...3.2
7
)
cmake_minimum_required(VERSION 3.5...3.2
9
)
project(example)
project(example)
find_package(pybind11 REQUIRED) # or `add_subdirectory(pybind11)`
find_package(pybind11 REQUIRED) # or `add_subdirectory(pybind11)`
...
...
docs/compiling.rst
View file @
7f2214bc
...
@@ -241,7 +241,7 @@ extension module can be created with just a few lines of code:
...
@@ -241,7 +241,7 @@ extension module can be created with just a few lines of code:
.. code-block:: cmake
.. code-block:: cmake
cmake_minimum_required(VERSION 3.5...3.2
7
)
cmake_minimum_required(VERSION 3.5...3.2
9
)
project(example LANGUAGES CXX)
project(example LANGUAGES CXX)
add_subdirectory(pybind11)
add_subdirectory(pybind11)
...
@@ -498,7 +498,7 @@ You can use these targets to build complex applications. For example, the
...
@@ -498,7 +498,7 @@ You can use these targets to build complex applications. For example, the
.. code-block:: cmake
.. code-block:: cmake
cmake_minimum_required(VERSION 3.5...3.2
7
)
cmake_minimum_required(VERSION 3.5...3.2
9
)
project(example LANGUAGES CXX)
project(example LANGUAGES CXX)
find_package(pybind11 REQUIRED) # or add_subdirectory(pybind11)
find_package(pybind11 REQUIRED) # or add_subdirectory(pybind11)
...
@@ -556,7 +556,7 @@ information about usage in C++, see :doc:`/advanced/embedding`.
...
@@ -556,7 +556,7 @@ information about usage in C++, see :doc:`/advanced/embedding`.
.. code-block:: cmake
.. code-block:: cmake
cmake_minimum_required(VERSION 3.5...3.2
7
)
cmake_minimum_required(VERSION 3.5...3.2
9
)
project(example LANGUAGES CXX)
project(example LANGUAGES CXX)
find_package(pybind11 REQUIRED) # or add_subdirectory(pybind11)
find_package(pybind11 REQUIRED) # or add_subdirectory(pybind11)
...
...
tests/CMakeLists.txt
View file @
7f2214bc
...
@@ -7,13 +7,13 @@
...
@@ -7,13 +7,13 @@
cmake_minimum_required
(
VERSION 3.5
)
cmake_minimum_required
(
VERSION 3.5
)
# The `cmake_minimum_required(VERSION 3.5...3.2
7
)` syntax does not work with
# The `cmake_minimum_required(VERSION 3.5...3.2
9
)` syntax does not work with
# some versions of VS that have a patched CMake 3.11. This forces us to emulate
# some versions of VS that have a patched CMake 3.11. This forces us to emulate
# the behavior using the following workaround:
# the behavior using the following workaround:
if
(
${
CMAKE_VERSION
}
VERSION_LESS 3.2
7
)
if
(
${
CMAKE_VERSION
}
VERSION_LESS 3.2
9
)
cmake_policy
(
VERSION
${
CMAKE_MAJOR_VERSION
}
.
${
CMAKE_MINOR_VERSION
}
)
cmake_policy
(
VERSION
${
CMAKE_MAJOR_VERSION
}
.
${
CMAKE_MINOR_VERSION
}
)
else
()
else
()
cmake_policy
(
VERSION 3.2
7
)
cmake_policy
(
VERSION 3.2
9
)
endif
()
endif
()
# Filter out items; print an optional message if any items filtered. This ignores extensions.
# Filter out items; print an optional message if any items filtered. This ignores extensions.
...
...
tests/test_cmake_build/installed_embed/CMakeLists.txt
View file @
7f2214bc
cmake_minimum_required
(
VERSION 3.5
)
cmake_minimum_required
(
VERSION 3.5
)
# The `cmake_minimum_required(VERSION 3.5...3.2
7
)` syntax does not work with
# The `cmake_minimum_required(VERSION 3.5...3.2
9
)` syntax does not work with
# some versions of VS that have a patched CMake 3.11. This forces us to emulate
# some versions of VS that have a patched CMake 3.11. This forces us to emulate
# the behavior using the following workaround:
# the behavior using the following workaround:
if
(
${
CMAKE_VERSION
}
VERSION_LESS 3.2
7
)
if
(
${
CMAKE_VERSION
}
VERSION_LESS 3.2
9
)
cmake_policy
(
VERSION
${
CMAKE_MAJOR_VERSION
}
.
${
CMAKE_MINOR_VERSION
}
)
cmake_policy
(
VERSION
${
CMAKE_MAJOR_VERSION
}
.
${
CMAKE_MINOR_VERSION
}
)
else
()
else
()
cmake_policy
(
VERSION 3.2
7
)
cmake_policy
(
VERSION 3.2
9
)
endif
()
endif
()
project
(
test_installed_embed CXX
)
project
(
test_installed_embed CXX
)
...
...
tests/test_cmake_build/installed_function/CMakeLists.txt
View file @
7f2214bc
cmake_minimum_required
(
VERSION 3.5
)
cmake_minimum_required
(
VERSION 3.5
)
project
(
test_installed_module CXX
)
project
(
test_installed_module CXX
)
# The `cmake_minimum_required(VERSION 3.5...3.2
7
)` syntax does not work with
# The `cmake_minimum_required(VERSION 3.5...3.2
9
)` syntax does not work with
# some versions of VS that have a patched CMake 3.11. This forces us to emulate
# some versions of VS that have a patched CMake 3.11. This forces us to emulate
# the behavior using the following workaround:
# the behavior using the following workaround:
if
(
${
CMAKE_VERSION
}
VERSION_LESS 3.2
7
)
if
(
${
CMAKE_VERSION
}
VERSION_LESS 3.2
9
)
cmake_policy
(
VERSION
${
CMAKE_MAJOR_VERSION
}
.
${
CMAKE_MINOR_VERSION
}
)
cmake_policy
(
VERSION
${
CMAKE_MAJOR_VERSION
}
.
${
CMAKE_MINOR_VERSION
}
)
else
()
else
()
cmake_policy
(
VERSION 3.2
7
)
cmake_policy
(
VERSION 3.2
9
)
endif
()
endif
()
project
(
test_installed_function CXX
)
project
(
test_installed_function CXX
)
...
...
tests/test_cmake_build/installed_target/CMakeLists.txt
View file @
7f2214bc
cmake_minimum_required
(
VERSION 3.5
)
cmake_minimum_required
(
VERSION 3.5
)
# The `cmake_minimum_required(VERSION 3.5...3.2
7
)` syntax does not work with
# The `cmake_minimum_required(VERSION 3.5...3.2
9
)` syntax does not work with
# some versions of VS that have a patched CMake 3.11. This forces us to emulate
# some versions of VS that have a patched CMake 3.11. This forces us to emulate
# the behavior using the following workaround:
# the behavior using the following workaround:
if
(
${
CMAKE_VERSION
}
VERSION_LESS 3.2
7
)
if
(
${
CMAKE_VERSION
}
VERSION_LESS 3.2
9
)
cmake_policy
(
VERSION
${
CMAKE_MAJOR_VERSION
}
.
${
CMAKE_MINOR_VERSION
}
)
cmake_policy
(
VERSION
${
CMAKE_MAJOR_VERSION
}
.
${
CMAKE_MINOR_VERSION
}
)
else
()
else
()
cmake_policy
(
VERSION 3.2
7
)
cmake_policy
(
VERSION 3.2
9
)
endif
()
endif
()
project
(
test_installed_target CXX
)
project
(
test_installed_target CXX
)
...
...
tests/test_cmake_build/subdirectory_embed/CMakeLists.txt
View file @
7f2214bc
cmake_minimum_required
(
VERSION 3.5
)
cmake_minimum_required
(
VERSION 3.5
)
# The `cmake_minimum_required(VERSION 3.5...3.2
7
)` syntax does not work with
# The `cmake_minimum_required(VERSION 3.5...3.2
9
)` syntax does not work with
# some versions of VS that have a patched CMake 3.11. This forces us to emulate
# some versions of VS that have a patched CMake 3.11. This forces us to emulate
# the behavior using the following workaround:
# the behavior using the following workaround:
if
(
${
CMAKE_VERSION
}
VERSION_LESS 3.2
7
)
if
(
${
CMAKE_VERSION
}
VERSION_LESS 3.2
9
)
cmake_policy
(
VERSION
${
CMAKE_MAJOR_VERSION
}
.
${
CMAKE_MINOR_VERSION
}
)
cmake_policy
(
VERSION
${
CMAKE_MAJOR_VERSION
}
.
${
CMAKE_MINOR_VERSION
}
)
else
()
else
()
cmake_policy
(
VERSION 3.2
7
)
cmake_policy
(
VERSION 3.2
9
)
endif
()
endif
()
project
(
test_subdirectory_embed CXX
)
project
(
test_subdirectory_embed CXX
)
...
...
tests/test_cmake_build/subdirectory_function/CMakeLists.txt
View file @
7f2214bc
cmake_minimum_required
(
VERSION 3.5
)
cmake_minimum_required
(
VERSION 3.5
)
# The `cmake_minimum_required(VERSION 3.5...3.2
7
)` syntax does not work with
# The `cmake_minimum_required(VERSION 3.5...3.2
9
)` syntax does not work with
# some versions of VS that have a patched CMake 3.11. This forces us to emulate
# some versions of VS that have a patched CMake 3.11. This forces us to emulate
# the behavior using the following workaround:
# the behavior using the following workaround:
if
(
${
CMAKE_VERSION
}
VERSION_LESS 3.2
7
)
if
(
${
CMAKE_VERSION
}
VERSION_LESS 3.2
9
)
cmake_policy
(
VERSION
${
CMAKE_MAJOR_VERSION
}
.
${
CMAKE_MINOR_VERSION
}
)
cmake_policy
(
VERSION
${
CMAKE_MAJOR_VERSION
}
.
${
CMAKE_MINOR_VERSION
}
)
else
()
else
()
cmake_policy
(
VERSION 3.2
7
)
cmake_policy
(
VERSION 3.2
9
)
endif
()
endif
()
project
(
test_subdirectory_function CXX
)
project
(
test_subdirectory_function CXX
)
...
...
tests/test_cmake_build/subdirectory_target/CMakeLists.txt
View file @
7f2214bc
cmake_minimum_required
(
VERSION 3.5
)
cmake_minimum_required
(
VERSION 3.5
)
# The `cmake_minimum_required(VERSION 3.5...3.2
7
)` syntax does not work with
# The `cmake_minimum_required(VERSION 3.5...3.2
9
)` syntax does not work with
# some versions of VS that have a patched CMake 3.11. This forces us to emulate
# some versions of VS that have a patched CMake 3.11. This forces us to emulate
# the behavior using the following workaround:
# the behavior using the following workaround:
if
(
${
CMAKE_VERSION
}
VERSION_LESS 3.2
7
)
if
(
${
CMAKE_VERSION
}
VERSION_LESS 3.2
9
)
cmake_policy
(
VERSION
${
CMAKE_MAJOR_VERSION
}
.
${
CMAKE_MINOR_VERSION
}
)
cmake_policy
(
VERSION
${
CMAKE_MAJOR_VERSION
}
.
${
CMAKE_MINOR_VERSION
}
)
else
()
else
()
cmake_policy
(
VERSION 3.2
7
)
cmake_policy
(
VERSION 3.2
9
)
endif
()
endif
()
project
(
test_subdirectory_target CXX
)
project
(
test_subdirectory_target CXX
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment