aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/generator/visualstudio/msbuildsharedsolutionpropertiesproject.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/plugins/generator/visualstudio/msbuildsharedsolutionpropertiesproject.cpp b/src/plugins/generator/visualstudio/msbuildsharedsolutionpropertiesproject.cpp
index d8389817f..0da732a42 100644
--- a/src/plugins/generator/visualstudio/msbuildsharedsolutionpropertiesproject.cpp
+++ b/src/plugins/generator/visualstudio/msbuildsharedsolutionpropertiesproject.cpp
@@ -44,8 +44,9 @@ static QString qbsCommandLine(const GeneratableProject &project,
const QString &qbsSettingsDir,
const Internal::VisualStudioVersionInfo &versionInfo)
{
- auto addEnvironmentVariableArgument = [&](Internal::CommandLine &cl, const QString &var) {
- cl.appendRawArgument(QStringLiteral("\"$(%1)\"").arg(var));
+ auto addEnvironmentVariableArgument = [](Internal::CommandLine &cl, const QString &var,
+ const QString &prefix = QString()) {
+ cl.appendRawArgument(QStringLiteral("\"%1$(%2)\"").arg(prefix, var));
};
auto realSubCommand = subCommand;
@@ -92,7 +93,8 @@ static QString qbsCommandLine(const GeneratableProject &project,
commandLine.appendArgument(QStringLiteral("--force-probe-execution"));
}
- addEnvironmentVariableArgument(commandLine, QStringLiteral("Configuration"));
+ addEnvironmentVariableArgument(commandLine, QStringLiteral("Configuration"),
+ QStringLiteral("config:"));
return commandLine.toCommandLine(Internal::HostOsInfo::HostOsWindows);
}