Commit 6d4e3c59 authored by Arnaud Billon's avatar Arnaud Billon 💬
Browse files

Merge branch 'fix/sb-improvements' into 'master'

[fix] Instruct OSX to bundle LidarSLam.dylib

See merge request !22
parents b9c977b8 74dfe417
......@@ -190,6 +190,7 @@ function (superbuild_add_packaging)
list(APPEND superbuild_export_variables
PARAVIEW_VERSION
package_suffix
ENABLE_slam
)
set(default_package lidarview)
......
......@@ -7,6 +7,8 @@
# here https://gitlab.kitware.com/cmake/cmake/-/issues/19315).
# This script change paths for all boost dependencies from libboost_* to @rpath/libboost_*
message(WARNING "Applying Reset rpath for all boost dependencies path")
get_filename_component(install_location "${CMAKE_INSTALL_PREFIX}" ABSOLUTE)
# get a list of all boost lib used
file(GLOB boost_libs LIST_DIRECTORIES false "${install_location}/lib/libboost*.dylib")
......@@ -18,25 +20,13 @@ file(GLOB test_list LIST_DIRECTORIES false "bin/Test*")
foreach (boost_lib IN LISTS boost_libs)
get_filename_component(libboost_name "${boost_lib}" NAME)
foreach (app_name IN LISTS app_list)
execute_process(
COMMAND install_name_tool
-change "${libboost_name}" "@rpath/${libboost_name}"
"${app_name}")
endforeach ()
foreach (lib_name IN LISTS lib_list)
MESSAGE("Setting RPATH for ${boost_lib}")
foreach (bin_name IN LISTS app_list lib_list test_list)
MESSAGE(" Set on bin ${bin_name}")
execute_process(
COMMAND install_name_tool
-change "${libboost_name}" "@rpath/${libboost_name}"
"${lib_name}")
"${bin_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 ()
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