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
When building on a system with multiple python installations, pybind11's cmake script set PYTHON_LIBRARIES to the wrong values.
I was suggested in the gitter chat to set PYTHON_EXECUTABLE.
With that it shows the right interpreter, but the libraries are still pulled from the wrong path.
Reproducible example code
It happened to me when trying to link to the MSYS2 python in an Appveyor job, but I've head people had the same issue in other systems as well.