[BUG]: Pybind11Tools.cmake not finding Python AND pybind11_add_module creates only executables #5382
Open
2 of 3 tasks
Labels
triage
New bug, unverified
Required prerequisites
What version (or hash if on master) of pybind11 are you using?
2.14.0 dev1
Problem description
find_package(PythonLibsNew ${PYBIND11_PYTHON_VERSION} MODULE REQUIRED ${_pybind11_quiet})
Doesn't seem to work in the latest CMAKE.
It should be
find_package(Python3 ${PYBIND11_PYTHON_VERSION} MODULE REQUIRED ${_pybind11_quiet})
Otherwise it gives the error:
pybind11_add_module
will also generateproject_name.exe
even though you specifiedSHARED
as the argument.Reproducible example code
The text was updated successfully, but these errors were encountered: