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

Check that all required CMake packages and targets are installed #417

Merged
merged 5 commits into from
Sep 26, 2024

Conversation

traversaro
Copy link
Member

@traversaro traversaro commented Sep 26, 2024

To ensure that we do not break downstream users.

@traversaro
Copy link
Member Author

Ok, there is a bug as long the cmake-package-check invocations are failing, and also another bug as the CI is not failing enve if cmake-package-check is failing.

@traversaro
Copy link
Member Author

All failures are:

2024-09-26T12:00:13.2128738Z CMake Error at /home/runner/micromamba/envs/human-dynamics-estimation/lib/cmake/WearableData/WearableDataTargets.cmake:61 (set_target_properties):
2024-09-26T12:00:13.2130728Z   The link interface of target "WearableData::WearableData" contains:
2024-09-26T12:00:13.2131405Z 
2024-09-26T12:00:13.2131761Z     YARP::YARP_os
2024-09-26T12:00:13.2132055Z 
2024-09-26T12:00:13.2132434Z   but the target was not found.  Possible reasons include:
2024-09-26T12:00:13.2132887Z 
2024-09-26T12:00:13.2133076Z     * There is a typo in the target name.
2024-09-26T12:00:13.2133726Z     * A find_package call is missing for an IMPORTED target.
2024-09-26T12:00:13.2134279Z     * An ALIAS target is missing.
2024-09-26T12:00:13.2134560Z 
2024-09-26T12:00:13.2134712Z Call Stack (most recent call first):
2024-09-26T12:00:13.2136004Z   /home/runner/micromamba/envs/human-dynamics-estimation/lib/cmake/WearableData/WearableDataConfig.cmake:21 (include)
2024-09-26T12:00:13.2136948Z   CMakeLists.txt:5 (find_package)

@traversaro
Copy link
Member Author

Ok, now all the checks end with cmake-package-check: SUCCESS. . The fact that on failure the CI does not fail is tracked in ami-iit/cmake-package-check#9 .

@traversaro traversaro merged commit 82b84f4 into master Sep 26, 2024
6 checks passed
@traversaro traversaro deleted the addtestingofinstalledcmakepackages branch September 26, 2024 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants