Remove setting CMAKE_MACOSX_RPATH to 0 by default #1632
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In conda-forge/gtsam-feedstock#15 (comment), setting CMAKE_MACOSX_RPATH to
0
(combined with the fact that the build system uses thegtsam.cpython-311-darwin.so
in the build directory to copy inlib/python3.11/site-packages/gtsam/gtsam.cpython-311-darwin.so
instead of installing it) lead to a quite difficult to debug strange behaviour.As CMAKE_MACOSX_RPATH is set to 1 since CMake 3.0 , I wanted to see it the upstream CI fails. If setting CMAKE_MACOSX_RPATH to 0 make the CI fails and it is necessary to disable RPATH for some reason, the following CMake variable are the one currently suggested by CMake, and so I would try to set them instead of tweaking
CMAKE_MACOSX_RPATH
:CMAKE_SKIP_RPATH
: to disable both build and install rpathCMAKE_SKIP_BUILD_RPATH
: to disable build rpathCMAKE_SKIP_INSTALL_RPATH
: to disable install rpath