From 6a8f3d82d299ecb35ff85c76b293c190f6ba5f11 Mon Sep 17 00:00:00 2001 From: Sami Shalayel Date: Tue, 24 Sep 2024 16:40:12 +0200 Subject: [PATCH] QtQuickApplication Template: set mininum Qt version Don't set the version in the find_package()-call as that overrides the Qt kit selected in the wizard by the user, when available. Instead, set the REQUIRES to the manually selected minimum version. Task-number: QTCREATORBUG-31628 Change-Id: Ic010b4bcfb7e1065d8dcc2d7fe726d32f76dafb3 Reviewed-by: Ulf Hermann Reviewed-by: Fabian Kosmale --- .../wizards/projects/qtquickapplication/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/qtcreator/templates/wizards/projects/qtquickapplication/CMakeLists.txt b/share/qtcreator/templates/wizards/projects/qtquickapplication/CMakeLists.txt index 5ab817b9bfe..d7ae810c033 100644 --- a/share/qtcreator/templates/wizards/projects/qtquickapplication/CMakeLists.txt +++ b/share/qtcreator/templates/wizards/projects/qtquickapplication/CMakeLists.txt @@ -7,11 +7,11 @@ set(CMAKE_AUTOMOC ON) @endif set(CMAKE_CXX_STANDARD_REQUIRED ON) -find_package(Qt6 %{MinimumSupportedQtVersion} REQUIRED COMPONENTS Quick) +find_package(Qt6 REQUIRED COMPONENTS Quick) @if %{HasQSPSetup} @if %{UsesAutoResourcePrefix} -qt_standard_project_setup(REQUIRES 6.5) +qt_standard_project_setup(REQUIRES %{MinimumSupportedQtVersion}) @else qt_standard_project_setup() @endif