Henry Schreiner
2e5f5c4cf8
fix: support CMake 3.27, drop 3.4 ( #4719 )
...
* fix: support CMake 3.27, drop 3.4
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
* Update upgrade.rst
* Update upgrade.rst
* Update upgrade.rst
---------
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
2023-07-12 13:10:24 -05:00
Henry Schreiner
c14b193308
chore: increase CMake upper limit ( #3124 )
2021-07-28 18:04:14 -07:00
Henry Schreiner
130c99544d
fix: support basic dual includes ( #2804 )
2021-01-19 18:49:03 -05:00
Henry Schreiner
1729aae96f
feat: new FindPython support ( #2370 )
...
* feat: FindPython support
* refactor: rename to PYBIND11_FINDPYTHON
* docs: Caps fixes
* feat: NOPYTHON mode
* test: check simple call
* docs: add changelog/upgrade guide
* feat: Support Python3 and Python2
* refactor: Use targets in tests
* fix: support CMake 3.4+
* feat: classic search also finds virtual environments
* docs: some updates from @wjakob's review
* fix: wrong name for QUIET mode variable, reported by @skoslowski
* refactor: cleaner output messaging
* fix: support debug Python's in FindPython mode too
* fixup! refactor: cleaner output messaging
* fix: missing pybind11_FOUND and pybind11_INCLUDE_DIR restored to subdir mode
* fix: nicer reporting of Python / PyPy
* fix: out-of-order variable fix
* docs: minor last-minute cleanup
2020-08-19 12:26:26 -04:00
Henry Schreiner
da803eb0a5
fix: duplicate target names removed
2020-08-06 11:54:41 -04:00
Henry Schreiner
df115977df
chore: cleanup
2020-08-06 11:54:41 -04:00
Henry Schreiner
94db5c5ed1
format: apply cmake-format
2020-07-30 20:27:55 -04:00
Henry Schreiner
6ec1775fff
feat: drop CMake 3.6 and below, modernize CMake
...
fix: include PYTHON_IS_DEBUG
2020-07-30 20:27:55 -04:00
Henry Schreiner
1f53c373e4
fix: C++17 mode on Clang may error
2020-07-26 09:25:27 -04:00
Dean Moldovan
71e8a7962c
Rename target from pybind11::pybind11 to pybind11::module
...
Makes room for an eventual pybind11::embedded target.
2016-12-19 16:34:48 +01:00
Dean Moldovan
b0f3885c95
Make sure add_subdirectory and find_package behave identically
...
Add a BUILD_INTERFACE and a pybind11::pybind11 alias for the interface
library to match the installed target.
Add new cmake tests for add_subdirectory and consolidates the
.cpp and .py files needed for the cmake build tests:
Before:
tests
|-- test_installed_module
| |-- CMakeLists.txt
| |-- main.cpp
| \-- test.py
\-- test_installed_target
|-- CMakeLists.txt
|-- main.cpp
\-- test.py
After:
tests
\-- test_cmake_build
|-- installed_module/CMakeLists.txt
|-- installed_target/CMakeLists.txt
|-- subdirectory_module/CMakeLists.txt
|-- subdirectory_target/CMakeLists.txt
|-- main.cpp
\-- test.py
2016-12-19 16:34:48 +01:00