Tests/CMakeGUI: Explicitly find all needed components

This fixes configuration with Qt6 on Windows.
This commit is contained in:
Brad King
2026-03-04 10:06:09 -05:00
parent 086fff1543
commit 960dd6ede3
+6 -1
View File
@@ -2,7 +2,12 @@ include(CMakeParseArguments)
get_property(CMake_QT_MAJOR_VERSION TARGET cmake-gui PROPERTY CMake_QT_MAJOR_VERSION)
find_package(Qt${CMake_QT_MAJOR_VERSION}Test REQUIRED)
find_package(Qt${CMake_QT_MAJOR_VERSION} REQUIRED COMPONENTS
Core
Gui
Test
Widgets
)
if(MSVC)
# QTBUG-118993: Qt uses deprecated stdext::checked_array_iterator