Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LidarView
LidarView-Core
Commits
8b2126c5
Commit
8b2126c5
authored
Jun 17, 2021
by
Arnaud Billon
💬
Browse files
[Patch] Fix OSX flann rpaths
parent
a9a3b4c6
Pipeline
#233615
failed with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMake/FinalizeLidarViewProject.cmake
View file @
8b2126c5
# Patch reset boost RPATH on OSX
# Patch reset boost
/flann
RPATH on OSX
# this is applied on LidarView app and tests
# for more information see comments in lidarview.osx-
boost-
rpath.cmake
install
(
SCRIPT
"LVCore/CMake/scripts/lidarview.osx-
boost-
rpath.cmake"
)
# for more information see comments in lidarview.osx-rpath.cmake
install
(
SCRIPT
"LVCore/CMake/scripts/lidarview.osx-rpath.cmake"
)
# Patch ZLIB RPATH on Unix/OSX
# this is applied on LidarView app and tests
...
...
CMake/scripts/lidarview.osx-
boost-
rpath.cmake
→
CMake/scripts/lidarview.osx-rpath.cmake
View file @
8b2126c5
...
...
@@ -12,13 +12,14 @@ 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"
)
file
(
GLOB flann_libs LIST_DIRECTORIES false
"
${
install_location
}
/lib/libflann*.dylib"
)
# get all app and tests on which to change boost path
file
(
GLOB app_list LIST_DIRECTORIES false
"
${
install_location
}
/bin/*/Contents/MacOS/*"
)
file
(
GLOB lib_list LIST_DIRECTORIES false
"lib/*.dylib"
"
${
install_location
}
/lib/*.dylib"
)
file
(
GLOB test_list LIST_DIRECTORIES false
"bin/Test*"
)
foreach
(
boost_lib IN LISTS boost_libs
)
foreach
(
boost_lib IN LISTS boost_libs
flann_libs
)
get_filename_component
(
libboost_name
"
${
boost_lib
}
"
NAME
)
MESSAGE
(
"Setting RPATH for
${
boost_lib
}
"
)
foreach
(
bin_name IN LISTS app_list lib_list test_list
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment