diff -r 92af50454cf2 -r 8054d9d775fd cmake_modules/paths.cmake --- a/cmake_modules/paths.cmake Fri Oct 11 11:55:31 2013 +0200 +++ b/cmake_modules/paths.cmake Fri Oct 11 17:43:13 2013 +0200 @@ -51,6 +51,10 @@ #it's safe to use our RPATH because it is relative set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE) +#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 FALSE) + #paths where to find libraries (final slash not optional): # - the first is relative to the executable # - the second is the same directory of the executable (so it runs in bin/)