-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: Unknown CMake command "python_add_library" in pybind11NewTools.cmake #5472
Comments
I come across with the same issue, when pybind is built with NVIDIA TensorRT-LLM -- Found Torch: /home/ma-user/anaconda3/envs/py10-llm/lib/python3.10/site-packages/torch/lib/libtorch.so |
I come across with the same issue. just replace |
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: