Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Corryvreckan
Corryvreckan
Commits
1f371066
Commit
1f371066
authored
Mar 24, 2020
by
Simon Spannagel
Browse files
CMake: resolve macOS RPATH issues
parent
b8ea0390
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
1f371066
...
...
@@ -65,7 +65,9 @@ ENDIF()
# Set up the RPATH so executables find the libraries even when installed in non-default location
SET
(
CMAKE_MACOSX_RPATH TRUE
)
SET
(
CMAKE_SKIP_BUILD_RPATH FALSE
)
SET
(
CMAKE_SKIP_INSTALL_RPATH FALSE
)
SET
(
CMAKE_BUILD_WITH_INSTALL_RPATH FALSE
)
SET
(
CMAKE_INSTALL_RPATH
${
CMAKE_INSTALL_FULL_LIBDIR
}
)
# Add the automatically determined parts of the RPATH which point to directories outside the build tree to the install RPATH
SET
(
CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE
)
...
...
@@ -76,6 +78,11 @@ IF("${IsSystemDir}" STREQUAL "-1")
SET
(
CMAKE_INSTALL_RPATH
"
${
CMAKE_INSTALL_PREFIX
}
/lib"
)
ENDIF
(
"
${
IsSystemDir
}
"
STREQUAL
"-1"
)
IF
(
APPLE
)
SET
(
CMAKE_INSTALL_NAME_DIR
"@rpath"
)
SET
(
CMAKE_INSTALL_RPATH
"@loader_path/../lib"
)
# self relative LIBDIR
ENDIF
()
# Include corry cmake functions
INCLUDE
(
"cmake/corryvreckan.cmake"
)
...
...
Simon Spannagel
@simonspa
mentioned in commit
c6e35c87
·
Jun 18, 2020
mentioned in commit
c6e35c87
mentioned in commit c6e35c876fa90d57552e00ad54efe184bbc08180
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment