From 14cbe2f16d6260056567e98b2114438783a14d96 Mon Sep 17 00:00:00 2001 From: Derek Foster Date: Thu, 11 Jul 2024 09:29:22 -0700 Subject: [PATCH] Fix error in standalone cmake build 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)