Skip to content

Conversation

jcfr
Copy link

@jcfr jcfr commented Mar 31, 2022

This commit updates the build-system to set CMAKE_MACOSX_RPATH to TRUE
only if is not already defined in the current scope. The default
behavior remains unchanged.

This allows to successfully configure the project with the following
options so that RPATH with absolute paths is used for both the build
and install trees:

  -DCMAKE_MACOSX_RPATH:BOOL=FALSE
  -DCMAKE_INSTALL_NAME_DIR:PATH=/path/to/install/dir

…H value

This commit updates the build-system to set CMAKE_MACOSX_RPATH to TRUE
only if is not already defined in the current scope. The default
behavior remains unchanged.

This allows to successfully configure the project with the following
options so that RPATH with absolute paths is used for both the build
and install trees:

  -DCMAKE_MACOSX_RPATH:BOOL=FALSE
  -DCMAKE_INSTALL_NAME_DIR:PATH=/path/to/install/dir
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.

1 participant