From 9fcac28d8ad802e55f46308082aaf03c14e3d84a 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 8fa2f3aa..f80c9aa3 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)