Commit b4ed400c authored by Guillaume Sylvand's avatar Guillaume Sylvand

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).
parent f574464b
......@@ -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
# ------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment