forked from qt-creator/qt-creator
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 <ulf.hermann@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
@@ -7,11 +7,11 @@ set(CMAKE_AUTOMOC ON)
|
|||||||
@endif
|
@endif
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
|
||||||
find_package(Qt6 %{MinimumSupportedQtVersion} REQUIRED COMPONENTS Quick)
|
find_package(Qt6 REQUIRED COMPONENTS Quick)
|
||||||
|
|
||||||
@if %{HasQSPSetup}
|
@if %{HasQSPSetup}
|
||||||
@if %{UsesAutoResourcePrefix}
|
@if %{UsesAutoResourcePrefix}
|
||||||
qt_standard_project_setup(REQUIRES 6.5)
|
qt_standard_project_setup(REQUIRES %{MinimumSupportedQtVersion})
|
||||||
@else
|
@else
|
||||||
qt_standard_project_setup()
|
qt_standard_project_setup()
|
||||||
@endif
|
@endif
|
||||||
|
Reference in New Issue
Block a user