We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 322d8cf commit 32155ffCopy full SHA for 32155ff
tools/pybind11NewTools.cmake
@@ -130,9 +130,9 @@ if(DEFINED ${_Python}_INCLUDE_DIRS)
130
# Only add Python for build - must be added during the import for config
131
# since it has to be re-discovered.
132
#
133
- # This needs to be an target to it is included after the local pybind11
134
- # directory, just in case there are multiple versions of pybind11, we want
135
- # the one we expect.
+ # This needs to be a target to be included after the local pybind11
+ # directory, just in case there there is an installed pybind11 sitting
+ # next to Python's includes. It also ensures Python is a SYSTEM library.
136
add_library(pybind11::python_headers INTERFACE IMPORTED)
137
set_property(
138
TARGET pybind11::python_headers PROPERTY INTERFACE_INCLUDE_DIRECTORIES
0 commit comments