Skip to content

Conversation

hodoulp
Copy link
Contributor

@hodoulp hodoulp commented Oct 14, 2025

The pull request fixes the unit tests on macOS by correctly updating the RPATH.

Note: Tested with Ninja and XCode on macOS and Ninja on Linux.

@hodoulp hodoulp requested a review from laforel October 14, 2025 22:07
@hodoulp hodoulp marked this pull request as ready for review October 14, 2025 22:07
@hodoulp hodoulp requested a review from DDoS October 14, 2025 22:11
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")
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

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]>
@hodoulp hodoulp merged commit 6584886 into main Oct 17, 2025
10 checks passed
@hodoulp hodoulp deleted the hodoulp/hotfix_2 branch October 17, 2025 15:16
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.

3 participants