Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error in standalone cmake build #154

Merged
merged 1 commit into from
Jul 11, 2024
Merged

Fix error in standalone cmake build #154

merged 1 commit into from
Jul 11, 2024

Conversation

ffoulkes
Copy link
Contributor

@ffoulkes ffoulkes commented Jul 11, 2024

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.

This commit is associated with ipdk-io/networking-recipe#541.

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]>
Copy link
Collaborator

@5abeel 5abeel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ffoulkes ffoulkes merged commit 332e41f into main Jul 11, 2024
4 checks passed
@ffoulkes ffoulkes deleted the set_install_rpath branch July 11, 2024 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
trivial effort Almost no effort required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants