Commit 8a093643 authored by Jerome Dias's avatar Jerome Dias
Browse files

[fix] Add a script to reset boost rpath dependencies on osx.

parent ca34d42b
# change osx path from libboost_* to @rpath/libboost_*
file(GLOB boost_libs LIST_DIRECTORIES false "${install_location}/*/*/Contents/Libraries/libboost*.dylib")
file(GLOB app_names LIST_DIRECTORIES false "${install_location}/bin/*/Contents/MacOS/*")
file(GLOB test_names LIST_DIRECTORIES false "${install_location}/bin/Test*")
foreach (boost_lib IN LISTS boost_libs)
get_filename_component(libboost_name "${boost_lib}" NAME)
# apply change for the osx app in "${install_location}/bin"
foreach (app_name IN LISTS app_names)
COMMAND install_name_tool
-change "${libboost_name}" "@rpath/${libboost_name}"
endforeach ()
# apply changes for all tests installed in "${install_location}/bin"
foreach (test_name IN LISTS test_names)
COMMAND install_name_tool
-change "${libboost_name}" "@rpath/${libboost_name}"
endforeach ()
endforeach ()
Supports Markdown
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