From 0e176ae6fca43c1afbd60ffd8d359bd5ee814ea0 Mon Sep 17 00:00:00 2001
From: Florent Pruvost <florent.pruvost@inria.fr>
Date: Fri, 27 May 2016 13:00:07 +0000
Subject: [PATCH] update the INSTALL_RPATH at the beginning instead of setting
 a new one, allows to give additional paths by hand

---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2bf1fd60f..fe12e9f83 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -87,7 +87,7 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/cmake_modules/")
     set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
 
     # the RPATH to be used when installing
-    set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
+    set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_RPATH} ${CMAKE_INSTALL_PREFIX}/lib")
 
     # Misc options
     # ------------
-- 
GitLab