|
|
@ -233,7 +233,11 @@ if(OSG_STATIC)
|
|
|
|
add_library(openmw_cs_osg_plugins INTERFACE)
|
|
|
|
add_library(openmw_cs_osg_plugins INTERFACE)
|
|
|
|
foreach(_plugin ${USED_OSG_PLUGINS})
|
|
|
|
foreach(_plugin ${USED_OSG_PLUGINS})
|
|
|
|
string(TOUPPER ${_plugin} _plugin_uc)
|
|
|
|
string(TOUPPER ${_plugin} _plugin_uc)
|
|
|
|
list(APPEND _osg_plugins_static_files $<TARGET_FILE:${${_plugin_uc}_LIBRARY}>)
|
|
|
|
if (${_plugin_uc}_LIBRARY MATCHES "[/.]")
|
|
|
|
|
|
|
|
list(APPEND _osg_plugins_static_files ${${_plugin_uc}_LIBRARY})
|
|
|
|
|
|
|
|
else()
|
|
|
|
|
|
|
|
list(APPEND _osg_plugins_static_files $<TARGET_FILE:${${_plugin_uc}_LIBRARY}>)
|
|
|
|
|
|
|
|
endif()
|
|
|
|
target_link_libraries(openmw_cs_osg_plugins INTERFACE ${${_plugin_uc}_LIBRARY})
|
|
|
|
target_link_libraries(openmw_cs_osg_plugins INTERFACE ${${_plugin_uc}_LIBRARY})
|
|
|
|
endforeach()
|
|
|
|
endforeach()
|
|
|
|
# We use --whole-archive because OSG plugins use registration.
|
|
|
|
# We use --whole-archive because OSG plugins use registration.
|
|
|
|