From: Manuel Nickschas Date: Sun, 17 Aug 2008 23:15:21 +0000 (+0200) Subject: (Try to) fix RPATH issues X-Git-Tag: 0.3.0~28 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=e031760becbdc25f467f9fb8afeaaa0fb1014d18;ds=sidebyside (Try to) fix RPATH issues See https://bugs.gentoo.org/show_bug.cgi?id=224901 Will test if that makes Portage happy after pushing this commit :) --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 288f7abc..6f24251e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,6 +38,10 @@ if(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)