Using FetchContent with nanobind? #1247
Unanswered
astrogewgaw
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My project,
shazam, is a C++ library with Python bindings. I am using CPM.cmake, which is a thin wrapper around CMake's FetchContent module. I cannot seem to add thefmtlibrary as a dependency no matter what I do. If I remove thenanobindpart from myCMakeLists.txtfile, everything works. ShouldFetchContentwork transparently withnanobind, or do I need to take additional steps?My
CMakeLists.txtfile can be found here: https://github.com/astrogewgaw/shazam/blob/main/CMakeLists.txt. If I try to install my project with either:pip install .or:
pip install --no-build-isolation -Ceditable.rebuild=true -ve .I get the following error:
The complete error is here:
Details
I installed
nanobindvia pip, like so:Let me know if there is any more info I can provide which might help debug this. I am horribly stuck, and could really use some advice.
Beta Was this translation helpful? Give feedback.
All reactions