• Home
  • Raw
  • Download

Lines Matching refs:pybind11

1 # tools/pybind11NewTools.cmake -- Build system for the pybind11 modules
10 TARGET pybind11::headers
38 # If this behavior is not desired, FindPython _before_ pybind11.
61 message(AUTHOR_WARNING "Python2 and Python3 both present, pybind11 in "
109 FATAL_ERROR "pybind11 could not query the module file extension, likely the 'distutils'"
124 TARGET pybind11::pybind11
135 # This needs to be a target to be included after the local pybind11
136 # directory, just in case there there is an installed pybind11 sitting
138 add_library(pybind11::python_headers INTERFACE IMPORTED)
140 TARGET pybind11::python_headers PROPERTY INTERFACE_INCLUDE_DIRECTORIES
143 TARGET pybind11::pybind11
145 PROPERTY INTERFACE_LINK_LIBRARIES pybind11::python_headers)
148 CACHE INTERNAL "Directories where pybind11 and possibly Python headers are located")
153 TARGET pybind11::pybind11
155 PROPERTY INTERFACE_LINK_LIBRARIES pybind11::python2_no_register)
161 TARGET pybind11::embed
169 TARGET pybind11::module
174 TARGET pybind11::module
176 PROPERTY INTERFACE_LINK_LIBRARIES pybind11::python_link_helper)
179 # WITHOUT_SOABI and WITH_SOABI will disable the custom extension handling used by pybind11.
203 target_link_libraries(${target_name} PRIVATE pybind11::headers)
206 target_link_libraries(${target_name} PRIVATE pybind11::module)
208 target_link_libraries(${target_name} PRIVATE pybind11::embed)
212 target_link_libraries(${target_name} PRIVATE pybind11::windows_extras)
216 target_link_libraries(${target_name} PRIVATE pybind11::python2_no_register)
221 # py::module_local). We force it on everything inside the `pybind11`
243 target_link_libraries(${target_name} PRIVATE pybind11::thin_lto)
245 target_link_libraries(${target_name} PRIVATE pybind11::lto)
255 target_link_libraries(${target_name} PRIVATE pybind11::windows_extras)
259 target_link_libraries(${target_name} PRIVATE pybind11::opt_size)