From 332e41f8720048531796d5c55a9c4dbb8b19d821 Mon Sep 17 00:00:00 2001 From: Derek G Foster Date: Thu, 11 Jul 2024 13:40:10 -0700 Subject: [PATCH] Fix error in standalone cmake build (#154) The krnlmon_unit_tests workflow fails with the following message: CMake Error at CMakeLists.txt:69 (set_install_rpath): Unknown CMake command "set_install_rpath". This is because set_install_rpath() is defined in the top-level networking-recipe CMakeLists.txt file, which is not executed in standalone build mode. Addressed the issue by moving the function definition to its own file (SetInstallPath.cmake) and including it from standalone.cmake in the krnlmon build. Note that this commit is dependent on a corresponding commit in the networking-recipe repository. Signed-off-by: Derek Foster --- cmake/standalone.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/standalone.cmake b/cmake/standalone.cmake index a94c3bb..d34270e 100644 --- a/cmake/standalone.cmake +++ b/cmake/standalone.cmake @@ -114,3 +114,8 @@ include(CompilerSettings) set_basic_compiler_options() set_legacy_security_options() #set_extended_security_options() + +#----------------------------------------------------------------------- +# set_install_rpath() +#----------------------------------------------------------------------- +include(SetInstallRpath)