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.6 6.5 Change-Id: Iecce40449cdf116f1a7c279ebb161f0f5c7f6a9f Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
a1b28bba9d
commit
0392570385
@ -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