diff --git a/cpp/locality/CMakeLists.txt b/cpp/locality/CMakeLists.txt index b29c19984..7d32b89fa 100644 --- a/cpp/locality/CMakeLists.txt +++ b/cpp/locality/CMakeLists.txt @@ -3,7 +3,7 @@ set(locality_extension_sources export_PeriodicBuffer.cc export_Voronoi.cc) # create the target and add the needed properties -nanobind_add_module(_locality SHARED module-locality.cc +nanobind_add_module(_locality ${freud_nanobind_linking} module-locality.cc ${locality_extension_sources}) target_link_libraries(_locality PUBLIC libfreud) diff --git a/cpp/util/CMakeLists.txt b/cpp/util/CMakeLists.txt index 3f6501366..6acae7295 100644 --- a/cpp/util/CMakeLists.txt +++ b/cpp/util/CMakeLists.txt @@ -1,6 +1,6 @@ set(util_extension_headers export_ManagedArray.h export_Vector.h) -nanobind_add_module(_util NB_SHARED module-util.cc ${util_extension_headers}) +nanobind_add_module(_util ${freud_nanobind_linking} module-util.cc ${util_extension_headers}) target_link_libraries(_util PUBLIC libfreud) target_set_install_rpath(_util)