Skip to content

Commit

Permalink
build nanobind before linking
Browse files Browse the repository at this point in the history
  • Loading branch information
fraguada committed Aug 6, 2024
1 parent e80d143 commit 42f8b6c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ if (${RHINO3DM_PY})
add_definitions(-DON_RUNTIME_LINUX)
add_definitions(-DON_CLANG_CONSTRUCTOR_BUG)
if(PYTHON_BINDING_LIB STREQUAL "NANOBIND")
#need to build nanobind to link it?
nanobind_build_library(nanobind)
nanobind_add_module(_rhino3dm ${bindings_SRC} ${opennurbs_SRC} ${zlib_SRC} ${uuid_SRC})
target_link_libraries(_rhino3dm PRIVATE nanobind)
else()
Expand All @@ -121,6 +123,8 @@ if (${RHINO3DM_PY})
add_library(zlib_static STATIC ${zlib_SRC})
add_library(opennurbs_static STATIC ${opennurbs_SRC})
if(PYTHON_BINDING_LIB STREQUAL "NANOBIND")
#need to build nanobind to link it?
nanobind_build_library(nanobind)
nanobind_add_module(_rhino3dm ${bindings_SRC})
target_link_libraries(_rhino3dm PRIVATE nanobind)
else()
Expand Down

0 comments on commit 42f8b6c

Please sign in to comment.