From a788036527b68e0dbd53be3a854d04e5e253112d Mon Sep 17 00:00:00 2001 From: Yoann Le Montagner Date: Tue, 27 Feb 2024 10:25:20 +0100 Subject: [PATCH] fix(CMake): wrong RPATH for executables after install --- cmake/CppTargets.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/CppTargets.cmake b/cmake/CppTargets.cmake index 58cefd5ea..bcd9da268 100644 --- a/cmake/CppTargets.cmake +++ b/cmake/CppTargets.cmake @@ -200,7 +200,7 @@ function(_add_geode_executable exe_path folder_name) set_target_properties(${target_name} PROPERTIES FOLDER ${folder_name} - INSTALL_RPATH "${OS_RPATH}/../${CMAKE_INSTALL_LIBDIR}" + INSTALL_RPATH "$ORIGIN/../${CMAKE_INSTALL_LIBDIR}" ) set(target_name ${target_name} PARENT_SCOPE) endfunction()