From a4c06d56d0b587d14ce2c69786452409aa75b185 Mon Sep 17 00:00:00 2001 From: vansangpfiev Date: Mon, 20 May 2024 18:42:33 +0700 Subject: [PATCH] test: uuu --- third-party/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/third-party/CMakeLists.txt b/third-party/CMakeLists.txt index 540f94d..a69a1e5 100644 --- a/third-party/CMakeLists.txt +++ b/third-party/CMakeLists.txt @@ -11,6 +11,9 @@ set(THIRD_PARTY_INSTALL_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../build_deps/_install) if(CMAKE_SYSTEM_NAME STREQUAL "Linux") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") add_compile_options(-fPIC) + + set(CMAKE_INSTALL_RPATH "${THIRD_PARTY_INSTALL_PATH}") + set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) endif() ExternalProject_Add(