-
Notifications
You must be signed in to change notification settings - Fork 0
OGSMOD-8158 - Hot Fix - Fix unit tests on macOS #86
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
Conversation
Signed-off-by: Patrick Hodoul <[email protected]>
Signed-off-by: Patrick Hodoul <[email protected]>
Signed-off-by: Patrick Hodoul <[email protected]>
Signed-off-by: Patrick Hodoul <[email protected]>
Signed-off-by: Patrick Hodoul <[email protected]>
Signed-off-by: Patrick Hodoul <[email protected]>
Signed-off-by: Patrick Hodoul <[email protected]>
Signed-off-by: Patrick Hodoul <[email protected]>
CMakeLists.txt
Outdated
|
||
# Set platform-specific install RPATH. | ||
if (APPLE) | ||
set(_RPATH "@loader_path;@loader_path/../lib") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assuming we need to find libraries in lib/
from either lib/
or bin/
, then @loader_path/../lib
is all you need: lib/../lib
-> lib
, bin/../lib
-> lib
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea was to be generic in case 'someone' installs the libraries in bin
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're really not supposed to do that on POSIX, but OK.
Signed-off-by: Patrick Hodoul <[email protected]>
Signed-off-by: Patrick Hodoul <[email protected]>
The pull request fixes the unit tests on macOS by correctly updating the
RPATH
.Note: Tested with
Ninja
andXCode
on macOS andNinja
on Linux.