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 cmake function python_add_library was renamed to Python_add_library and I think, the corresponding calls in pybind11NewTools.cmake should be adapted accordingly:
Required prerequisites
What version (or hash if on master) of pybind11 are you using?
2.9.1, master
Problem description
Using the new
FindPython
mode but the oldpybind11_add_module
, I get the following error:The cmake function
python_add_library
was renamed toPython_add_library
and I think, the corresponding calls inpybind11NewTools.cmake
should be adapted accordingly:pybind11/tools/pybind11NewTools.cmake
Line 262 in 741d86f
However, I'm surprised that I am the first running into that issue. Maybe I'm missing something else?
Reproducible example code
Is this a regression? Put the last known working version here if it is.
Not a regression
The text was updated successfully, but these errors were encountered: