-
Notifications
You must be signed in to change notification settings - Fork 39
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
Be louder when graphics is missing for geospatial #573
Conversation
Signed-off-by: Michael Carroll <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## gz-common5 #573 +/- ##
===========================================
Coverage 83.65% 83.65%
===========================================
Files 92 92
Lines 10285 10285
===========================================
Hits 8604 8604
Misses 1681 1681 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
gz_add_component(geospatial | ||
SOURCES ${sources} | ||
DEPENDS_ON_COMPONENTS graphics |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought the DEPENDS_ON_COMPONENTS
parameter would generate a complaint if the needed component wasn't available, but apparently it doesn't
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was also my understanding, but does not seem to be the case.
an alternative would be to change every EDIT: it's what we do in gz-physics |
It would be the other way around, correct? Anyone who requires geospatial also will require graphics. |
This is failing, on focal because the folders are being processed |
Signed-off-by: Michael Carroll <[email protected]>
🦟 Bug fix
Summary
Users building from source could get in a situation where dependencies of the
graphics
component weren't available, so that the component is not created. In this case, thegeospatial
component still has a hard dependency on thegraphics
component, but it is still attempting to build.This adds gating logic to prevent the
geospatial
component from building when thegraphics
component isn't build and adds a warning message for the user.Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.