From e031760becbdc25f467f9fb8afeaaa0fb1014d18 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Mon, 18 Aug 2008 01:15:21 +0200 Subject: [PATCH] (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 :) --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.20.1