Find dependencies quietly?
Stephen Kelly
steveire at gmail.com
Sat Feb 1 20:21:48 UTC 2014
On 02/01/2014 08:22 PM, Alex Merry wrote:
> (CC'ing Stephen because this is relevant to the version of
> find_dependency in CMake master)
>
> Currently, the find_dependency() macro does not pass the QUIET argument
> to find_package unless the parent package was being found quietly. This
> means that feature_summary() prints out all the transitive dependencies
> in addition to the main dependency.
>
> I think this makes the feature summary much less useful, because it is
> difficult to see what is going on with such a long list, and these
> requirements are not independent of each other.
>
> So, I think that find_dependency should pass QUIET to find_package
> whether or not the parent package is being found quietly.
>
> Do other people agree?
I agree with the problem statement, but not the solution proposed. I
don't think finding all dependencies QUIETly makes sense. That has other
side-effects.
Did you/will you consider changing the feature_summary implementation to
filter them out another way? How does feature summary work? Can the
find_dependency macro somehow omit entries from feature_summary?
(without affecting other direct find_package calls?
Thanks,
Steve.
More information about the Kde-frameworks-devel
mailing list