X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=CMakeLists.txt;h=6f24251e27dc879d08cd7fe312f481a50e5af60a;hp=288f7abc15fcef422cc888e19835d03304339007;hb=e031760becbdc25f467f9fb8afeaaa0fb1014d18;hpb=aa49f1a8d52fb95920c7b686ea2c7ae5c1532d87 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)