diff --git a/cmakemodules/ilcsoft_default_rpath_settings.cmake b/cmakemodules/ilcsoft_default_rpath_settings.cmake index 3a6663e..61635f1 100644 --- a/cmakemodules/ilcsoft_default_rpath_settings.cmake +++ b/cmakemodules/ilcsoft_default_rpath_settings.cmake @@ -15,6 +15,8 @@ if(APPLE) set(CMAKE_INSTALL_RPATH "@loader_path/../${CMAKE_INSTALL_LIBDIR}") endif("${isSystemDir}" STREQUAL "-1") else() + 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 endif()