From 137c280830fd995bd7c3d2a9a29bc8337ad3e613 Mon Sep 17 00:00:00 2001 From: rjbrown2 Date: Wed, 11 Sep 2024 00:24:12 +0000 Subject: [PATCH] [nasa/Cryptolib#293] Update to CmakeLists.txt - Allows for more flexibility in Install Path --- src/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0445391d..a6138aae 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -128,8 +128,9 @@ endif() # Create the app module if(DEFINED CFE_SYSTEM_PSPNAME) - set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/cpu${TGTSYS_${SYSVAR}}/${INSTALL_SUBDIR}") + set(CMAKE_INSTALL_RPATH "./${INSTALL_SUBDIR}") add_cfe_app(crypto ${LIB_SRC_FILES}) + install(TARGETS crypto RUNTIME_DEPENDENCIES DESTINATION ${CMAKE_INSTALL_PREFIX}/${TGTSYS_${SYSVAR}}/${INSTALL_SUBDIR}) else() # Standalone build add_library(crypto SHARED ${LIB_SRC_FILES})