Closed
Description
Pre-loading python3 in cmake leads to the target not being linked against python library.
find_package(Python3 REQUIRED COMPONENTS Interpreter Development)
find_package(pybind11 2.3.0 REQUIRED)
add_library(my_target [...])
target_link_libraries(my_target pybind11::embed)
I believe this is due to the following line linking against Python3::Python3
in that case instead of Python3::Python
provided by the cmake module
pybind11/tools/pybind11NewTools.cmake
Line 147 in 02746cb
pybind11/tools/pybind11NewTools.cmake
Line 151 in 02746cb
Metadata
Metadata
Assignees
Labels
No labels