forked from qt-creator/qt-creator
Force minimum of Qt 6.5 for "Qt 6" version of CMake wizards
The console and widgets app got a new template for simplified CMake files with Qt 6. These require Qt 6.5 or later, so state that both in the label and the CMake files. Change-Id: I23e39b82017f8f11ab720fa701786912e46ea26d Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -2,9 +2,9 @@ cmake_minimum_required(VERSION 3.19)
|
|||||||
project(%{ProjectName} LANGUAGES CXX)
|
project(%{ProjectName} LANGUAGES CXX)
|
||||||
|
|
||||||
@if %{HasTranslation}
|
@if %{HasTranslation}
|
||||||
find_package(Qt6 REQUIRED COMPONENTS Core LinguistTools)
|
find_package(Qt6 6.5 REQUIRED COMPONENTS Core LinguistTools)
|
||||||
@else
|
@else
|
||||||
find_package(Qt6 REQUIRED COMPONENTS Core)
|
find_package(Qt6 6.5 REQUIRED COMPONENTS Core)
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
qt_standard_project_setup()
|
qt_standard_project_setup()
|
||||||
|
@@ -58,7 +58,7 @@
|
|||||||
"condition": "%{JS: value('Plugins').indexOf('CMakeProjectManager') >= 0}"
|
"condition": "%{JS: value('Plugins').indexOf('CMakeProjectManager') >= 0}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"trKey": "CMake for Qt 6",
|
"trKey": "CMake for Qt 6.5 and Later",
|
||||||
"value": "cmake-qt6",
|
"value": "cmake-qt6",
|
||||||
"condition": "%{JS: value('Plugins').indexOf('CMakeProjectManager') >= 0}"
|
"condition": "%{JS: value('Plugins').indexOf('CMakeProjectManager') >= 0}"
|
||||||
},
|
},
|
||||||
|
@@ -2,9 +2,9 @@ cmake_minimum_required(VERSION 3.19)
|
|||||||
project(%{ProjectName} LANGUAGES CXX)
|
project(%{ProjectName} LANGUAGES CXX)
|
||||||
|
|
||||||
@if %{HasTranslation}
|
@if %{HasTranslation}
|
||||||
find_package(Qt6 REQUIRED COMPONENTS Core Widgets LinguistTools)
|
find_package(Qt6 6.5 REQUIRED COMPONENTS Core Widgets LinguistTools)
|
||||||
@else
|
@else
|
||||||
find_package(Qt6 REQUIRED COMPONENTS Core Widgets)
|
find_package(Qt6 6.5 REQUIRED COMPONENTS Core Widgets)
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
qt_standard_project_setup()
|
qt_standard_project_setup()
|
||||||
|
@@ -64,7 +64,7 @@
|
|||||||
"condition": "%{JS: value('Plugins').indexOf('CMakeProjectManager') >= 0}"
|
"condition": "%{JS: value('Plugins').indexOf('CMakeProjectManager') >= 0}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"trKey": "CMake for Qt 6",
|
"trKey": "CMake for Qt 6.5 and Later",
|
||||||
"value": "cmake-qt6",
|
"value": "cmake-qt6",
|
||||||
"condition": "%{JS: value('Plugins').indexOf('CMakeProjectManager') >= 0}"
|
"condition": "%{JS: value('Plugins').indexOf('CMakeProjectManager') >= 0}"
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user