Meson: Better messages for most dependency errors
This adds human-friendly error messages to most of the optional dependencies when they are missing. The idea is to help people explicitly disable the features they don't want. Currently there does not seem to be a better way to do this.
Note, that this MR includes !72 (merged) as it depends on it.
Merge request reports
Activity
Maybe @dbaker would know of a better way to do this?
Edited by Daniel StoneThere is https://github.com/mesonbuild/meson/issues/2407 but I think the messages are a major usability improvement, which I think is crucial when pushing people towards Meson, so I'm not sure we want to wait for a Meson release. Do we?
- Resolved by Pekka Paalanen
@whot writes from !75 (merged):
LGTM, but I wonder if this is something that may be best in meson directly as an argument to
dependency()
. Seems useful for many cases.@pq writes from !75 (merged):
There is https://github.com/mesonbuild/meson/issues/2407 but I think the messages are a major usability improvement, which I think is crucial when pushing people towards Meson, so I'm not sure we want to wait for a Meson release. Do we?
Sounds reasonable, and I'm happy to merge this as-is. I'll leave this as a discussion: you can select the option to open issues for all unresolved discussions, so we automatically have a follow-on issue to resolve this when we come to bump our Meson dep to 0.50.
mentioned in issue #180