From b4ed400cda4d815df3095f53e15ab845c152d2f3 Mon Sep 17 00:00:00 2001 From: Guillaume Sylvand <guillaume.sylvand@airbus.com> Date: Tue, 4 Oct 2016 08:58:37 +0000 Subject: [PATCH] CMakeLists.txt: use list(APPEND..) to extend CMAKE_INSTALL_RPATH With previous syntax, CMAKE_INSTALL_RPATH contains empty spaces and rpath doesn't work at execution (libchameleon.so not found). --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 10576b055..03dd738bd 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_RPATH} ${CMAKE_INSTALL_PREFIX}/lib") + list(APPEND CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib") # Misc options # ------------ -- GitLab