From 42f8b6c416476e6aea43bd47155960797148ad27 Mon Sep 17 00:00:00 2001 From: fraguada Date: Tue, 6 Aug 2024 12:43:23 +0200 Subject: [PATCH] build nanobind before linking --- src/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ebc77795..04dbe260 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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() @@ -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()