CMake: Include quiet packages in feature summary

This will show packages that were found (or not) with
find_package(QUIET) in summary just before the configure summary.

It's useful for CI logs to determine whether some Qt packages was not
found when cross-compiling.

Pick-to: 6.2
Change-Id: Ic7d5062cf061f7c60b5c74374f957065dd8029f5
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Alexandru Croitor 2021-08-18 17:53:28 +02:00
parent 90d8a7bed6
commit a52b24ac39

View File

@ -1,7 +1,8 @@
function(qt_print_feature_summary) function(qt_print_feature_summary)
include(FeatureSummary) include(FeatureSummary)
# Show which packages were found. # Show which packages were found.
feature_summary(WHAT PACKAGES_FOUND feature_summary(INCLUDE_QUIET_PACKAGES
WHAT PACKAGES_FOUND
REQUIRED_PACKAGES_NOT_FOUND REQUIRED_PACKAGES_NOT_FOUND
RECOMMENDED_PACKAGES_NOT_FOUND RECOMMENDED_PACKAGES_NOT_FOUND
OPTIONAL_PACKAGES_NOT_FOUND OPTIONAL_PACKAGES_NOT_FOUND