File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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)
6464endif (USE_PYBIND11 )
You can’t perform that action at this time.
0 commit comments