1
From: Modestas Vainius <modax@debian.org>
2
Subject: Do not set install RPATH to /usr/lib by default
3
/usr/lib RPATH is disallowed on Debian systems and is a bad practise in
8
@@ -244,15 +244,6 @@ if (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_C_
9
set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common")
10
endif (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_C_COMPILER MATCHES "icc")
12
-# Set up RPATH handling, so the libs are found if they are installed to a non-standard location.
13
-# By default cmake builds the targets with full RPATH to everything in the build directory,
14
-# but then removes the RPATH when installing.
15
-# These two options below make it set the RPATH of the installed targets to all
16
-# RPATH directories outside the current CMAKE_BINARY_DIR and also the library
17
-# install directory. Alex
18
-set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
19
-set(CMAKE_INSTALL_RPATH "${LIB_INSTALL_DIR}" )
22
set(CMAKE_INSTALL_NAME_DIR ${LIB_INSTALL_DIR})