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

Testing macos installation #508

Merged
merged 1 commit into from
Sep 6, 2023
Merged

Testing macos installation #508

merged 1 commit into from
Sep 6, 2023

Conversation

lemire
Copy link
Member

@lemire lemire commented Sep 6, 2023

This PR would test macOS installation.

@@ -50,7 +50,6 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_MACOSX_RPATH OFF)
Copy link
Member

Choose a reason for hiding this comment

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

Why did we remove this? @lemire

Copy link
Member Author

Choose a reason for hiding this comment

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

By default, under macOS, CMake sets the MACOSX_RPATH property on all targets. If you do it manually, you should set CMAKE_MACOSX_RPATH to false. It appears that we do not set MACOSX_RPATH, so we either need to do so, or to leave CMAKE_MACOSX_RPATH to its default value (ON).

https://cmake.org/cmake/help/latest/variable/CMAKE_MACOSX_RPATH.html

Note that this is not normally an issue because we rarely use dynamic libraries under macOS.

@lemire
Copy link
Member Author

lemire commented Sep 6, 2023

@anonrig This is part of an attempt to further improve the quality of our CI, see #507, for better long-term maintenance.

@anonrig anonrig merged commit 04bb62c into main Sep 6, 2023
30 checks passed
@anonrig anonrig deleted the test_installation_macos branch September 6, 2023 14:34
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