Skip to content
Snippets Groups Projects
Commit 79214d74 authored by Administrator's avatar Administrator
Browse files

Correct RPATH information in the executables

When building the executables the needed PATH information to find necessary
libraries is stored in the executable. This PATH information is now also
present in the installed executables such that they work without adding PATH
information to the envirnonment.
parent 1f851eb8
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,24 @@ else()
Set(FAIRMQ_LIBS FairMQ)
EndIf()
# RPATH information should be present for executables in the build as well
# as in the installation directory
# use, i.e. don't skip the full RPATH for the build tree
set(CMAKE_SKIP_BUILD_RPATH FALSE)
# when building, don't use the install RPATH already
# (but later on when installing)
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
# 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)
add_subdirectory(base)
add_subdirectory(source)
add_subdirectory(sink)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment