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:
Tobias Hunger
2020-04-22 13:27:55 +02:00
parent a112f02975
commit ca4c578532

View File

@@ -251,9 +251,11 @@ Tasks CMakeKitAspect::validate(const Kit *k) const
CMakeTool *tool = CMakeKitAspect::cmakeTool(k);
if (tool) {
CMakeTool::Version version = tool->version();
if (version.major < 3) {
result << BuildSystemTask(Task::Warning, tr("CMake version %1 is unsupported. Please update to "
"version 3.0 or later.").arg(QString::fromUtf8(version.fullVersion)));
if (version.major < 3 || (version.major == 3 && version.minor < 7)) {
result << BuildSystemTask(Task::Warning,
tr("CMake version %1 is unsupported. Please update to "
"version 3.7 or later.")
.arg(QString::fromUtf8(version.fullVersion)));
}
}
return result;