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

App,GUI: add developer notes to set the RPATHs

parent 04655018
No related branches found
No related tags found
1 merge request!2508Fix RPATHs of libBornAgain GUI
Pipeline #139566 passed
......@@ -64,6 +64,7 @@ endif()
# See our deployment paper (Nejati et al 2024) for explanation.
if(LINUX)
# NOTE: RPATH must be set also in `GUI/CMakeLists.txt`
set(link_flags "-Wl,-rpath,\$ORIGIN/../lib")
set_target_properties(${executable_name} PROPERTIES LINK_FLAGS ${link_flags})
elseif(APPLE)
......
......@@ -37,6 +37,7 @@ target_compile_definitions(${lib} PUBLIC $<$<NOT:$<CONFIG:Debug>>:QT_NO_DEBUG_OU
# See our deployment paper (Nejati et al 2024) for explanation.
if(LINUX)
# NOTE: RPATH must be set also in `App/CMakeLists.txt`
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