From 3ae1140ce1793edd3c610f0f0a7ccbd3ff1eaec5 Mon Sep 17 00:00:00 2001
From: isucan <isucan@253336fb-580f-4252-a368-f3cef5a2a82b>
Date: Thu, 23 Feb 2012 01:39:07 +0000
Subject: [PATCH] add rpath magic

git-svn-id: https://kforge.ros.org/fcl/fcl_ros@78 253336fb-580f-4252-a368-f3cef5a2a82b
---
 trunk/fcl/CMakeLists.txt | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/trunk/fcl/CMakeLists.txt b/trunk/fcl/CMakeLists.txt
index 43f4498c..ba38a833 100644
--- a/trunk/fcl/CMakeLists.txt
+++ b/trunk/fcl/CMakeLists.txt
@@ -10,10 +10,15 @@ project(fcl CXX C)
 #set(ROS_BUILD_TYPE RelWithDebInfo)
 set(CMAKE_BUILD_TYPE Release)
 
-set(FCL_VERSION "0.1.0")
+set(FCL_VERSION "0.1.1")
 set(PKG_DESC "Fast Collision Library")
 set(PKG_EXTERNAL_DEPS "ccd flann")
 
+set(CMAKE_SKIP_BUILD_RPATH  FALSE)
+set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
+set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
+set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
+
 #set the default path for built executables to the "bin" directory
 set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
 #set the default path for built libraries to the "lib" directory
-- 
GitLab