Skip to content

Commit 380239d

Browse files
committed
Update for static library w/ Python
1 parent ae92208 commit 380239d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ if(USE_PYBIND11)
5353
add_library(${pluginName} STATIC ${SOURCES})
5454

5555
SET(myPluginSources limex_pybind.cpp)
56-
SET(myLibraries ug4 ${pluginName})
56+
SET(myLibraries ${pluginName} ${targetLibraryName}) # targetLibraryName is either ug4 or ug4_s
5757

5858
# First argument must match module name in PYBIND11_MODULE call
5959
python_add_library(pylimex MODULE ${myPluginSources} ${SOURCES} WITH_SOABI)
6060
#ug4pybind_add_module(pylimex ${myPluginSources} ${myLibraries})
61-
target_link_libraries (pylimex PRIVATE ${pluginName} ug4)
61+
target_link_libraries (pylimex PRIVATE ${myLibraries})
6262
set_target_properties(pylimex PROPERTIES INSTALL_RPATH "$ORIGIN/..:$ORIGIN/../../../lib")
6363
install(TARGETS pylimex LIBRARY DESTINATION ug4py COMPONENT pymodules)
6464
endif(USE_PYBIND11)

0 commit comments

Comments
 (0)