You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
jbigot
changed the title
cmake lead to missng symbols when linking against pybind11::embed while preloading python with find_package(Python3)
[BUG] cmake lead to missng symbols when linking against pybind11::embed while preloading python with find_package(Python3)Nov 15, 2020
…ct python lib
* with find_package(Python3) it would link the wrong Python3::Pyhton3 instead of the correct Python3::Pyhton
* with find_package(Python2) it would link the wrong Python2::Pyhton2 instead of the correct Python3::Pyhton
Fixpybind#2664
Pre-loading python3 in cmake leads to the target not being linked against python library.
I believe this is due to the following line linking against
Python3::Python3
in that case instead ofPython3::Python
provided by the cmake modulepybind11/tools/pybind11NewTools.cmake
Line 147 in 02746cb
pybind11/tools/pybind11NewTools.cmake
Line 151 in 02746cb
The text was updated successfully, but these errors were encountered: