Skip to content
Snippets Groups Projects
Commit 04655018 authored by AlQuemist's avatar AlQuemist
Browse files

GUI/CMakeLists.txt: Fix RPATH of libBornAgainGUI

parent 9516a4fd
No related branches found
No related tags found
1 merge request!2508Fix RPATHs of libBornAgain GUI
......@@ -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)
......
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