forked from qt-creator/qt-creator
CMake: Fix cmake version detection
Task-number: QTCREATORBUG-19966 Change-Id: I0834e1c117e96d05912b7bba7362b4d3d4c6c28d Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
committed by
Tobias Hunger
parent
3e4ecf9213
commit
caf935b60f
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user