-
Notifications
You must be signed in to change notification settings - Fork 31
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
👩🌾 ign_find_package: respect QUIET #164
Conversation
Signed-off-by: Louise Poubel <[email protected]>
I'm not sure if I would consider this the "right" approach for suppressing warnings about the dependencies of optional components. What if a user wanted to build that component, but cmake quietly fails to configure the component because of a missing dependency? Instead I think we should make it
Then for gazebosim/gz-rendering#281 we should have the build farm specify If |
There's a catch with my proposal, though: cmake will only report one missing dependency for a component in each run of the configuration. To make my proposal really sound, we should create a new set of variables like
|
I think we should separate the 2 things here:
For For
We need to support the idea that not all components are required. For example, I know that there isn't a consensus about the role of warnings, but in general, we've been warning users when something non critical needs to be fixed. When it comes to optional dependencies or components, nothing needs to be fixed, so nothing needs to be warned. The user will get the message that the dependency was not found, it just won't be a warning. In any case, I believe the conversation about
There's a mechanism at the CMake level to skip support for specific engines if the dependency is not available. That works across all platforms, for all users, without hardcoding anything into our CI. We encourage our users to use Ignition Rendering with any of the 3 officially supported rendering engines, or none of them, and these are first-class use-cases. I'd prefer we don't bother users with warnings when they aren't doing anything wrong. I recommend we continue this conversation at the |
I made a relevant commentin gazebosim/gz-rendering#309 (comment) |
Leaving |
Summary
This is meant to help with gazebosim/gz-rendering#281.
Judging by the documentation, I believe
QUIET
wasn't being used to suppress warnings from the macro on purpose. But I can't think of a reason not to use that argument 🤔Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge
🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸
https://github.com/osrf/buildfarmer/issues/181