(Try to) fix RPATH issues
authorManuel Nickschas <sputnick@quassel-irc.org>
Sun, 17 Aug 2008 23:15:21 +0000 (01:15 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 17 Aug 2008 23:15:21 +0000 (01:15 +0200)
See https://bugs.gentoo.org/show_bug.cgi?id=224901
Will test if that makes Portage happy after pushing this commit :)

CMakeLists.txt

index 288f7ab..6f24251 100644 (file)
@@ -38,6 +38,10 @@ if(STATIC)
   set(CMAKE_BUILD_TYPE Release)
 endif(STATIC)
 
   set(CMAKE_BUILD_TYPE Release)
 endif(STATIC)
 
+# RPATH needs to be set correctly
+set(CMAKE_INSTALL_RPATH_USE_LINK_PATH 1) 
+set(CMAKE_BUILD_WITH_INSTALL_RPATH 1)
+
 # Enable various flags on gcc
 if(CMAKE_COMPILER_IS_GNUCXX)
   include(CheckCXXCompilerFlag)
 # Enable various flags on gcc
 if(CMAKE_COMPILER_IS_GNUCXX)
   include(CheckCXXCompilerFlag)