-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ogre2: retain CMAKE_INSTALL_RPATH values #909
Conversation
Sets the ogre2 target INSTALL_RPATH to a copy of CMAKE_INSTALL_RPATH with OGRE_LIBRARY_DIRS appended, instead of just the latter path. This helps with packaging on macOS. Signed-off-by: Steve Peters <[email protected]>
Codecov Report
@@ Coverage Diff @@
## gz-rendering8 #909 +/- ##
==============================================
Coverage 75.18% 75.18%
==============================================
Files 177 177
Lines 16846 16846
==============================================
Hits 12665 12665
Misses 4181 4181 |
macOS CI failed and I was looking into it |
Ah, sorry! |
This reverts commit 8c1fd27.
no worries; I think it may have been preexisting; I'm reviewing previous build failures |
looks like it came from #897 |
Sets the ogre2 target INSTALL_RPATH to a copy of CMAKE_INSTALL_RPATH with OGRE_LIBRARY_DIRS appended, instead of just the latter path. This helps with packaging on macOS. Signed-off-by: Steve Peters <[email protected]>
Sets the ogre2 target INSTALL_RPATH to a copy of CMAKE_INSTALL_RPATH with OGRE_LIBRARY_DIRS appended, instead of just the latter path. This helps with packaging on macOS. Signed-off-by: Steve Peters <[email protected]>
🦟 Bug fix
Related to osrf/homebrew-simulation#2273
Summary
I have been adding some RPATH configuration to our homebrew formulae to fix issues with binaries installed to subfolders of
lib
andlibexec
on ARM processors, for which homebrew is installed to/opt/homebrew
instead of/usr/local
. In osrf/homebrew-simulation#2404 for example, an additional entry is added toCMAKE_INSTALL_RPATH
to fix agz-plugin
standalone executable. TheCMAKE_INSTALL_RPATH
value provides a default value for theINSTALL_RPATH
property of all targets. While testing these rpath fixes, but I ran into a problem with just the ogre2 library in gz-rendering not using the paths specified inCMAKE_INSTALL_RPATH
. After looking at the gz-rendering source code, I see that theINSTALL_RPATH
of the ogre2 target is set to a single path, which overrides the default values fromCMAKE_INSTALL_RPATH
.This pull request sets the ogre2 target
INSTALL_RPATH
property to a copy ofCMAKE_INSTALL_RPATH
withOGRE_LIBRARY_DIRS
appended, instead of just the latter path. This helps with packaging on macOS.Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.