forked from qt-creator/qt-creator
CMake: Update minimum CMake version to 3.7
Tealeaf reader mode has been removed, so require at least CMake version 3.7 (which comes with server-mode). Change-Id: I1ce8cdd08f226446ccca5882d1cb2171019b3409 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -251,9 +251,11 @@ Tasks CMakeKitAspect::validate(const Kit *k) const
|
|||||||
CMakeTool *tool = CMakeKitAspect::cmakeTool(k);
|
CMakeTool *tool = CMakeKitAspect::cmakeTool(k);
|
||||||
if (tool) {
|
if (tool) {
|
||||||
CMakeTool::Version version = tool->version();
|
CMakeTool::Version version = tool->version();
|
||||||
if (version.major < 3) {
|
if (version.major < 3 || (version.major == 3 && version.minor < 7)) {
|
||||||
result << BuildSystemTask(Task::Warning, tr("CMake version %1 is unsupported. Please update to "
|
result << BuildSystemTask(Task::Warning,
|
||||||
"version 3.0 or later.").arg(QString::fromUtf8(version.fullVersion)));
|
tr("CMake version %1 is unsupported. Please update to "
|
||||||
|
"version 3.7 or later.")
|
||||||
|
.arg(QString::fromUtf8(version.fullVersion)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
Reference in New Issue
Block a user