Skip to content
Snippets Groups Projects
Commit 117a24dd authored by Fabian Kosmale's avatar Fabian Kosmale
Browse files

use a relative rpath for rpath (to keep it relocatable)

parent 2feee036
No related branches found
No related tags found
No related merge requests found
...@@ -65,9 +65,11 @@ cmake_path(APPEND module_dir "${qtqmldir}" "${module_target_path}") ...@@ -65,9 +65,11 @@ cmake_path(APPEND module_dir "${qtqmldir}" "${module_target_path}")
message(STATUS "Module dir ${module_dir}") message(STATUS "Module dir ${module_dir}")
# allow the installed plugin to find its backing library # allow the installed plugin to find its backing library
cmake_path(SET plugin2backinglibpath ${qtlibdir})
cmake_path(RELATIVE_PATH plugin2backinglibpath BASE_DIRECTORY ${module_dir})
set_property( set_property(
TARGET "${module_plugin_target}" TARGET "${module_plugin_target}"
APPEND PROPERTY INSTALL_RPATH "${qtlibdir}" APPEND PROPERTY INSTALL_RPATH "\${ORIGIN}/${plugin2backinglibpath}"
) )
# Install the QML module runtime loadable plugin # Install the QML module runtime loadable plugin
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment