From f0286b60bacb16df2b33c8e270f6e98d64626381 Mon Sep 17 00:00:00 2001 From: Alexey Edelev Date: Mon, 16 Oct 2023 12:05:20 +0200 Subject: [PATCH] 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 (cherry picked from commit 039257038533467d5b72ff2523c6d0db688f6f7d) Reviewed-by: Qt Cherry-pick Bot --- cmake/QtStandaloneTestsConfig.cmake.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/QtStandaloneTestsConfig.cmake.in b/cmake/QtStandaloneTestsConfig.cmake.in index afa9d2ee79b..b1b65221b7a 100644 --- a/cmake/QtStandaloneTestsConfig.cmake.in +++ b/cmake/QtStandaloneTestsConfig.cmake.in @@ -2,4 +2,4 @@ # bypassing the Qt6 Config file, aka find_package(Qt6SpecificFoo) repated x times. But it's not # critical. find_package(@INSTALL_CMAKE_NAMESPACE@ @main_qt_package_version@ - REQUIRED COMPONENTS @QT_REPO_KNOWN_MODULES_STRING@) + COMPONENTS @QT_REPO_KNOWN_MODULES_STRING@)