From 68b5490621b504b68d25a3a990af18eb758d4cc7 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Wed, 30 Aug 2023 17:31:58 +0200 Subject: [PATCH] Change library type for pyngcore to MODULE --- libsrc/core/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/core/CMakeLists.txt b/libsrc/core/CMakeLists.txt index b763246a..de4b2604 100644 --- a/libsrc/core/CMakeLists.txt +++ b/libsrc/core/CMakeLists.txt @@ -77,7 +77,7 @@ endif(ENABLE_CPP_CORE_GUIDELINES_CHECK) add_dependencies(ngcore ng_generate_version_file) if(USE_PYTHON) - pybind11_add_module(pyngcore SHARED python_ngcore_export.cpp) + pybind11_add_module(pyngcore MODULE python_ngcore_export.cpp) target_link_libraries(pyngcore PUBLIC ngcore netgen_python) set_target_properties(pyngcore PROPERTIES INSTALL_RPATH "${NG_RPATH_TOKEN}/../${NETGEN_PYTHON_RPATH}") install(TARGETS pyngcore DESTINATION ${NG_INSTALL_DIR_PYTHON}/pyngcore COMPONENT netgen)