Commit 4a1a29d9 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

CMake: Fix generator parsing on Windows



Change-Id: I8afc8651fc1299a2a8782749966fd7ba770c9423
Reviewed-by: default avatarTim Jenssen <tim.jenssen@theqtcompany.com>
parent 0d10ce38
......@@ -152,12 +152,14 @@ QStringList CMakeTool::supportedGenerators() const
foreach (const QString &line, lines) {
if (line.isEmpty())
continue;
if (line == QLatin1String("Generators"))
if (line == QLatin1String("Generators")) {
inGeneratorSection = true;
continue;
}
if (!inGeneratorSection)
continue;
if (line.startsWith(QLatin1String(" "))) {
if (line.startsWith(QLatin1String(" ")) && line.at(3) != QLatin1Char(' ')) {
int pos = line.indexOf(QLatin1Char('='));
if (pos < 0)
pos = line.length();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment