summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2018-04-05 14:38:02 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2018-04-05 14:38:02 +0200
commit882a8c139cf75cbeac54904072916ce62883e1cb (patch)
treece4f2a509d6e8266b327eb4e4e6f01d217b87100 /src/plugins
parentbaa09164ae14c58ec11a925a1f0fa57117e8ff1d (diff)
parent8da0e97f40abf19a089197c6aec8333a4e92d729 (diff)
downloadqbs-882a8c139cf75cbeac54904072916ce62883e1cb.tar.gz
Merge 1.11 into master
Change-Id: Ia9e19bf1317c55d84602e4e0f54f7a4f412dd600
Diffstat (limited to 'src/plugins')
-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 63cee32bf..fbefccc08 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);
}