Skip to content

Commit 2d6d34e

Browse files
ab9rfchdoc
andcommitted
on linux, use proper rpath for plugins
Co-Authored-By: Christian Doczkal <20443222+chdoc@users.noreply.github.com>
1 parent 8efc672 commit 2d6d34e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

plugins/Plugins.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ macro(dfhack_plugin)
141141
set_target_properties(${PLUGIN_NAME} PROPERTIES SUFFIX .plug.dll)
142142
endif()
143143

144+
if (UNIX)
145+
set_target_properties(${PLUGIN_NAME} PROPERTIES INSTALL_RPATH "$ORIGIN/..")
146+
endif()
147+
144148
install(TARGETS ${PLUGIN_NAME}
145149
LIBRARY DESTINATION ${DFHACK_PLUGIN_DESTINATION}
146150
RUNTIME DESTINATION ${DFHACK_PLUGIN_DESTINATION})

0 commit comments

Comments
 (0)