mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Tests/CMakeGUI: Explicitly find all needed components
This fixes configuration with Qt6 on Windows.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user