cmake_modules/paths.cmake
branchwebgl
changeset 9521 8054d9d775fd
parent 9279 69161099d6d9
parent 9339 14f5f3a1e2f7
child 9950 2759212a27de
--- 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/)