diff --git a/GUI/CMakeLists.txt b/GUI/CMakeLists.txt index 7d2329a57f586928f79fcc07a76db83dee475dde..df3863bdc77da23ea42960594bbd55a2d4b51179 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)