Skip to content
Snippets Groups Projects
Commit 59ad0c4d authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

under Linux, use RUNPATH instead of RPATH

parent 2d92f08e
No related branches found
No related tags found
1 merge request!2489cleanup -rpath directive in App/CMakeLists
......@@ -60,7 +60,7 @@ endif()
if(LINUX)
target_link_options(${executable_name} PRIVATE
"-Wl,--disable-new-dtags,-rpath=\$ORIGIN/../lib")
"-Wl,-rpath=\$ORIGIN/../lib")
endif()
if(APPLE)
......
......@@ -75,7 +75,7 @@ function(MakeLib lib)
# Set runtime-location of library dependencies
if(LINUX)
target_link_options(${lib} PRIVATE
"-Wl,--disable-new-dtags,-rpath,\$ORIGIN:\$ORIGIN/extra")
"-Wl,-rpath,\$ORIGIN:\$ORIGIN/extra")
endif()
if(APPLE AND (BA_APPLE_BUNDLE OR BA_WHEEL))
target_link_options(${lib} PRIVATE
......
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