From 04655018b0acdc1aec439bdfe002349a8b80060e Mon Sep 17 00:00:00 2001 From: AlQuemist <alquemist@Lyriks> Date: Fri, 19 Apr 2024 17:06:57 +0200 Subject: [PATCH] GUI/CMakeLists.txt: Fix RPATH of libBornAgainGUI --- GUI/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/GUI/CMakeLists.txt b/GUI/CMakeLists.txt index 7d2329a57f5..df3863bdc77 100644 --- a/GUI/CMakeLists.txt +++ b/GUI/CMakeLists.txt @@ -31,8 +31,13 @@ set(BornAgain_LIBRARIES "$CACHE{BornAgain_LIBRARIES};${lib_dir}/${libprefix}${li # switch OFF Qt debug output in any configuration except DEBUG target_compile_definitions(${lib} PUBLIC $<$<NOT:$<CONFIG:Debug>>:QT_NO_DEBUG_OUTPUT>) +# ----------------------------------------------------------------------------- +# runtime library paths +# ----------------------------------------------------------------------------- +# See our deployment paper (Nejati et al 2024) for explanation. + if(LINUX) - set(link_flags "-Wl,-rpath,\$ORIGIN") + set(link_flags "-Wl,--disable-new-dtags,-rpath,\$ORIGIN") set_target_properties(${lib} PROPERTIES LINK_FLAGS ${link_flags}) endif(LINUX) -- GitLab