Skip to content
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

octomap: relocatable shared libs on macOS #9143

Merged
merged 2 commits into from
Feb 3, 2022

Conversation

SpaceIm
Copy link
Contributor

@SpaceIm SpaceIm commented Jan 29, 2022

see conan-io/hooks#376


  • I've read the guidelines for contributing.
  • I've followed the PEP8 style guides for Python code in the recipes.
  • I've used the latest Conan client version.
  • I've tried at least one configuration locally with the
    conan-center hook activated.

@conan-center-bot
Copy link
Collaborator

All green in build 1 (fa97f723d24699abbe779107f7678e81ce795d12):

  • octomap/1.9.6@:
    All packages built successfully! (All logs)

  • octomap/1.9.7@:
    All packages built successfully! (All logs)

  • octomap/1.9.5@:
    All packages built successfully! (All logs)

  • octomap/1.9.3@:
    All packages built successfully! (All logs)

@@ -82,6 +85,9 @@ def _patch_sources(self):
# No -Werror
if tools.Version(self.version) >= "1.9.6":
tools.replace_in_file(compiler_settings, "-Werror", "")
# we want a clean rpath in installed shared libs
tools.replace_in_file(compiler_settings, "set(CMAKE_INSTALL_RPATH \"${CMAKE_INSTALL_PREFIX}/lib\")", "")
tools.replace_in_file(compiler_settings, "set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)", "")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in conan-io/hooks#376, you don't mention anything about CMAKE_INSTALL_RPATH/CMAKE_INSTALL_RPATH_UE_LINK_PATH. I think it should be explained why they have to be modified.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Actually these 2 ones have to be left to their default value in CMake, otherwise it leads to hardcoded paths in RPATH of binaries in install tree.

@conan-center-bot conan-center-bot merged commit 6cc22b3 into conan-io:master Feb 3, 2022
@SpaceIm SpaceIm deleted the octomap-relocatable-macos branch February 3, 2022 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants