CMake: Make it easier to get the expanded value of a CMake configuration

Change-Id: If289c48ef4ec2815e8bd12e08b990d1dc809c524
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2016-05-12 16:39:10 +02:00
parent a16bee8bc2
commit 5100454222
3 changed files with 13 additions and 1 deletions

View File

@@ -81,7 +81,7 @@ static QStringList toArguments(const CMakeConfig &config, const ProjectExplorer:
a.append(QLatin1String(":INTERNAL="));
break;
}
a.append(QString::fromUtf8(k->macroExpander()->expand(i.value)));
a.append(i.expandedValue(k));
return a;
});