cmake: skip rpath (paths to libs) for portable distrobution
authorCampbell Barton <ideasman42@gmail.com>
Tue, 23 Aug 2011 20:19:08 +0000 (20:19 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 23 Aug 2011 20:19:08 +0000 (20:19 +0000)
CMakeLists.txt

index 4a544cb..6b84531 100644 (file)
@@ -274,6 +274,11 @@ endif()
 
 TEST_SSE_SUPPORT()
 
+# don't store paths to libs for portable distrobution
+if(WITH_INSTALL_PORTABLE)
+       set(CMAKE_SKIP_BUILD_RPATH TRUE)
+endif()
+
 #-----------------------------------------------------------------------------
 # Initialize un-cached vars, avoid unused warning