From 131279194dd9382413c2f24c3b564bef3307779d Mon Sep 17 00:00:00 2001 From: Juraj Smiesko Date: Tue, 28 Feb 2023 13:23:26 +0100 Subject: [PATCH] Setting RPATH --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 61f43296..54443a86 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,6 +25,9 @@ if(NOT CMAKE_CXX_STANDARD MATCHES "14|17") message(FATAL_ERROR "Unsupported C++ standard: ${CMAKE_CXX_STANDARD}") endif() +# Setting RPATH ------------------------------------------------ +set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) + add_subdirectory(k4FWCore) add_subdirectory(k4Interface) if(BUILD_TESTING)