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

macOS: if Iceoryx used, add library dir to rpath #1353

Merged
merged 1 commit into from
Aug 9, 2022

Conversation

eboasson
Copy link
Contributor

@eboasson eboasson commented Aug 4, 2022

The CMAKE_INSTALL_RPATH set in the top-level CMakeLists.txt causes the
rpath for the Iceoryx library to disappear on installation, but not
setting it means the build directories are used in the rpaths of the
installed Cyclone library, which also doesn't work.

This adds the directory where the iceoryx library is found to the rpath
used for installing. I suspect there are better ways, but this should
be better than nothing.

Signed-off-by: Erik Boasson eb@ilities.com

The CMAKE_INSTALL_RPATH set in the top-level CMakeLists.txt causes the
rpath for the Iceoryx library to disappear on installation, but not
setting it means the build directories are used in the rpaths of the
installed Cyclone library, which also doesn't work.

This adds the directory where the iceoryx library is found to the rpath
used for installing.  I suspect there are better ways, but this should
be better than nothing.

Signed-off-by: Erik Boasson <eb@ilities.com>
Copy link
Contributor

@thijsmie thijsmie left a comment

Choose a reason for hiding this comment

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

While not a great fix, I think it is indeed better than nothing. If we come up with something better in the future we can remove this again.

@eboasson eboasson merged commit 882f972 into eclipse-cyclonedds:master Aug 9, 2022
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.

2 participants