CMake: Fix cmake version detection

Task-number: QTCREATORBUG-19966
Change-Id: I0834e1c117e96d05912b7bba7362b4d3d4c6c28d
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
José Tomás Tocino
2018-03-25 04:21:24 +02:00
committed by Tobias Hunger
parent 3e4ecf9213
commit caf935b60f

View File

@@ -427,7 +427,7 @@ void CMakeTool::fetchVersionFromVersionOutput() const
if (response.result != Utils::SynchronousProcessResponse::Finished)
return;
QRegularExpression versionLine("^cmake version ((\\d+).(\\d+).(\\d+).*)$");
QRegularExpression versionLine("^cmake.* version ((\\d+).(\\d+).(\\d+).*)$");
const QString responseText = response.stdOut();
for (const QStringRef &line : responseText.splitRef(QLatin1Char('\n'))) {
QRegularExpressionMatch match = versionLine.match(line);