Skip to content

Commit

Permalink
Fix error in standalone cmake build (#154)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
ffoulkes authored Jul 11, 2024
1 parent 9ce49c4 commit 332e41f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/standalone.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,8 @@ include(CompilerSettings)
set_basic_compiler_options()
set_legacy_security_options()
#set_extended_security_options()

#-----------------------------------------------------------------------
# set_install_rpath()
#-----------------------------------------------------------------------
include(SetInstallRpath)

0 comments on commit 332e41f

Please sign in to comment.