Skip to content

Commit

Permalink
Make sure RPATH is set to the correct directory
Browse files Browse the repository at this point in the history
Co-authored-by: Andre Sailer <[email protected]>
  • Loading branch information
tmadlener and andresailer committed May 28, 2024
1 parent c7062a1 commit 69e46cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmakemodules/ilcsoft_default_rpath_settings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ if(APPLE)
set(CMAKE_INSTALL_RPATH "@loader_path/../${CMAKE_INSTALL_LIBDIR}")
endif("${isSystemDir}" STREQUAL "-1")
else()
if(NOT CMAKE_INSTALL_LIBDIR)
set(CMAKE_INSTALL_LIBDIR lib)
endif()
set(CMAKE_INSTALL_RPATH "\$ORIGIN/../${CMAKE_INSTALL_LIBDIR}" )
MARK_AS_ADVANCED(CMAKE_INSTALL_RPATH)
set(CMAKE_SKIP_INSTALL_RPATH FALSE) # skip the full RPATH for the install tree
Expand Down

0 comments on commit 69e46cd

Please sign in to comment.