CMake: do not set an invalid INSTALL_RPATH for (plugin) libraries

CMAKE_INSTALL_RPATH also applies to libraries such as plugins. This
should not happen when relative RPATHs (through $ORIGIN) are in use, so
fix that.

Change-Id: I154d93ba6ed66c2f78a42b25e352b5b54e9b8818
Reviewed-on: https://code.wireshark.org/review/31609
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
João Valverde 2019-01-19 13:26:14 +00:00 committed by Peter Wu
parent 0c89d8c33a
commit 7c1d99cb89
1 changed files with 1 additions and 0 deletions

View File

@ -42,6 +42,7 @@ macro(ADD_PLUGIN_LIBRARY _plugin _subfolder)
set_target_properties(${_plugin} PROPERTIES
LIBRARY_OUTPUT_DIRECTORY ${PLUGIN_DIR}/${_subfolder}
INSTALL_RPATH ""
)
add_dependencies(plugins ${_plugin})