Commit c0b3dd7a authored by Daniel Teske's avatar Daniel Teske

ProjectMacroExpander: Actually make it work

Fixes 7 of 9 variables which didn't work due to kit always being null.

Change-Id: I47fbb9ba8aea4736c137939b7ec1d685f94d3fca
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent 7255b714
......@@ -356,6 +356,8 @@ static QString variableValue(const char *variable)
projectFilePath = doc->filePath();
if (BuildConfiguration *buildConfiguration = activeBuildConfiguration())
buildConfigurationName = buildConfiguration->displayName();
if (project->activeTarget())
kit = project->activeTarget()->kit();
}
ProjectMacroExpander expander(projectFilePath, projectName, kit, buildConfigurationName);
QString result;
......
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