Commit 74dfe417 authored by Arnaud Billon's avatar Arnaud Billon 💬
Browse files

[refactor] Refactor rpath-osx script

parent f53492e5
...@@ -20,25 +20,13 @@ file(GLOB test_list LIST_DIRECTORIES false "bin/Test*") ...@@ -20,25 +20,13 @@ file(GLOB test_list LIST_DIRECTORIES false "bin/Test*")
foreach (boost_lib IN LISTS boost_libs) foreach (boost_lib IN LISTS boost_libs)
get_filename_component(libboost_name "${boost_lib}" NAME) get_filename_component(libboost_name "${boost_lib}" NAME)
MESSAGE("Setting RPATH for ${boost_lib}")
foreach (app_name IN LISTS app_list) foreach (bin_name IN LISTS app_list lib_list test_list)
MESSAGE(" Set on bin ${bin_name}")
execute_process( execute_process(
COMMAND install_name_tool COMMAND install_name_tool
-change "${libboost_name}" "@rpath/${libboost_name}" -change "${libboost_name}" "@rpath/${libboost_name}"
"${app_name}") "${bin_name}")
endforeach () endforeach ()
foreach (lib_name IN LISTS lib_list)
execute_process(
COMMAND install_name_tool
-change "${libboost_name}" "@rpath/${libboost_name}"
"${lib_name}")
endforeach ()
foreach (test_name IN LISTS test_list)
execute_process(
COMMAND install_name_tool
-change "${libboost_name}" "@rpath/${libboost_name}"
"${test_name}")
endforeach ()
endforeach () endforeach ()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment