Allow Qt components be OPTIONAL when building standalone tests
We look for all Qt components when attempt configuring standalone tests. If some 3rdparty dependencies are missing in user environtment the configuring proccess will fail even if the dependency is not used by the standalone tests. Avoid requiring the Qt components, so users will see only warnings about the missing comonents or dependencies. Fixes: QTBUG-117709 Pick-to: 6.5 Change-Id: Iecce40449cdf116f1a7c279ebb161f0f5c7f6a9f Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 039257038533467d5b72ff2523c6d0db688f6f7d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
41feba789e
commit
f0286b60ba
@ -2,4 +2,4 @@
|
|||||||
# bypassing the Qt6 Config file, aka find_package(Qt6SpecificFoo) repated x times. But it's not
|
# bypassing the Qt6 Config file, aka find_package(Qt6SpecificFoo) repated x times. But it's not
|
||||||
# critical.
|
# critical.
|
||||||
find_package(@INSTALL_CMAKE_NAMESPACE@ @main_qt_package_version@
|
find_package(@INSTALL_CMAKE_NAMESPACE@ @main_qt_package_version@
|
||||||
REQUIRED COMPONENTS @QT_REPO_KNOWN_MODULES_STRING@)
|
COMPONENTS @QT_REPO_KNOWN_MODULES_STRING@)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user