Skip to content

Commit

Permalink
Merge commit '19c5fef' into 377-cryptolib-cross-compiling-issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Donnie-Ice committed Dec 19, 2024
2 parents 552acda + 19c5fef commit ecc4a80
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,11 @@ if(DEFINED CFE_SYSTEM_PSPNAME)
set(CMAKE_INSTALL_RPATH "./${INSTALL_SUBDIR}")
add_cfe_app(crypto ${LIB_SRC_FILES})
target_include_directories(crypto PUBLIC ../include)
install(TARGETS crypto RUNTIME_DEPENDENCIES DESTINATION ${CMAKE_INSTALL_PREFIX}/${TGTSYS_${SYSVAR}}/${INSTALL_SUBDIR})
if(NOT CMAKE_CROSSCOMPILING)
install(TARGETS crypto RUNTIME_DEPENDENCIES DESTINATION ${CMAKE_INSTALL_PREFIX}/${TGTSYS_${SYSVAR}}/${INSTALL_SUBDIR})
else()
install(TARGETS crypto)
endif()
else()
# Standalone build
add_library(crypto SHARED ${LIB_SRC_FILES})
Expand Down

0 comments on commit ecc4a80

Please sign in to comment.