Sergiu Deitsch
d2b2131603
cmake: report version type in the version string ( #3472 )
2021-11-16 10:03:41 -05:00
Ralf W. Grosse-Kunstleve
7d3b05715b
Improved workaround for Centos 8 failure (follow-on to PR #3030 ). ( #3193 )
...
* Rollback of PR #3030 (Working around Centos 8 failure).
* Adding `-DCMAKE_BUILD_TYPE=Release`
* Improving existing workaround (undoing the originally intended rollback).
* Fixing minor documentation bug.
2021-08-12 13:21:49 -07:00
Henry Schreiner
7cc0ebb475
fix: the CMake config in Python package had a hard coded path ( #3144 )
2021-07-27 17:23:52 -04:00
Robert Schütz
d00fc62931
use CMAKE_INSTALL_FULL_INCLUDEDIR ( #3005 )
2021-06-19 18:45:53 -04:00
Akira Kawata
417fd120cc
Fix: fix typo of WITHOUT_SOABI ( #2992 )
2021-05-06 00:19:05 -07:00
Henry Schreiner
230fa53f16
fix: Don't override global settings for VISIBILITY if set ( #2793 )
...
Sometimes programmers want to control this, and while it can be changed after the fact, it's commonly set via a CMAKE_ variable; if that variable is set, we should respect that (like the CMAKE_INTERPROCEDURAL_OPTIMIZATION setting).
2021-01-14 08:31:48 -05:00
Henry Schreiner
3488494a81
refactor: import check as a common function ( #2526 )
...
* feat: import check as a common function
* docs: add cmake to docs
2020-10-02 22:34:22 -04:00
Henry Schreiner
c58f7b745b
fix: reduce target collision in add_submodule mode ( #2423 )
...
* fix: reduce target collision in add_submodule mode
Closes #2420
* fix: update CMakeLists.txt
2020-08-22 09:06:01 -04: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
ed6de125c9
format: include .in files
2020-08-06 11:54:41 -04:00
Henry Schreiner
df115977df
chore: cleanup
2020-08-06 11:54:41 -04:00
Henry Schreiner
1b92cd1703
fix: address review points from @YannickJadoul
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
Axel Huebl
6ebfc4b2b0
Document CMAKE_CXX_STANDARD
...
This variable is a CMake community standard to set the C++
standard of a build. Document it in favor of the previous variable,
which stays as a legacy flag for existing projects.
https://cmake.org/cmake/help/v3.17/variable/CMAKE_CXX_STANDARD.html
2020-04-26 09:17:10 +02:00
Lori A. Burns
868d94fcb4
Apply c++ standard flag only to files of CXX language. ( #1678 )
2019-06-11 22:07:57 +02:00
Jason Rhinelander
fad5d3386c
Detect c++ standard unconditionally
...
Currently select_cxx_standard(), which sets PYBIND11_CPP_STANDARD when
not externally set, is only called from pybind11_add_module(), but the
embed target setup (which runs unconditionally) makes use of
${PYBIND11_CPP_STANDARD}, which isn't set yet. This commit removes the
`select_cxx_standard` function completely and just always runs the
standard detection code.
This also tweaks the detection code to not bothering checking for the
`-std=c++11` flag when the `-std=c++14` detection succeeded.
2017-07-16 11:01:00 -04:00
Dean Moldovan
7f5c85c861
Add CMake target for embedding the Python interpreter
...
All targets provided by pybind11:
* pybind11::module - the existing target for creating extension modules
* pybind11::embed - new target for embedding the interpreter
* pybind11::pybind11 - common "base" target (headers only)
2017-05-28 02:12:24 +02:00
Lori A. Burns
53a338c05a
fix one lingering ::pybind11 --> ::module target name ( #603 )
2017-01-13 11:10:22 +01: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
Lori A. Burns
5cafc99884
add CMake exported interface library and Config detection file
2016-12-13 21:44:19 +01:00