Fix RPATH handling (#122)

Fix rpath handling

- remove explicit add to CMAKE_INSTALL_RPATH
- remove overriding INSTALL_RPATH_USE_LINK_PATH for exes
This commit is contained in:
Jonathan R. Madsen
2022-08-01 14:19:19 -05:00
committed by GitHub
parent 641225f883
commit 97d17a8ef8
8 changed files with 8 additions and 57 deletions
+1 -7
View File
@@ -8,13 +8,7 @@
#
# ----------------------------------------------------------------------------- #
string(REPLACE ":" ";" _INSTALL_RPATH "${CMAKE_INSTALL_RPATH}")
if(_INSTALL_RPATH)
list(REMOVE_DUPLICATES _INSTALL_RPATH)
endif()
string(REPLACE ";" ":" _INSTALL_RPATH "${_INSTALL_RPATH}")
string(REPLACE "::" ":" OMNITRACE_LIB_INSTALL_RPATH
"\$ORIGIN:\$ORIGIN/omnitrace:${_INSTALL_RPATH}")
set(OMNITRACE_LIB_INSTALL_RPATH "\$ORIGIN:\$ORIGIN/omnitrace")
add_subdirectory(common)
add_subdirectory(omnitrace)