Skip to content

CMake / renaming the extension #962

Answered by tigrux
thorstenhater asked this question in Q&A
Discussion options

You must be logged in to vote

In my cmake file, i am using something like this:

nanobind_add_module(foo_python ...)
set_target_properties(foo_python PROPERTIES OUTPUT_NAME foo_)

And in Macos this creates foo_.cpython-313-darwin.so

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by thorstenhater
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants