aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Epting <thomas.epting@stryker.com>2016-12-18 16:04:45 +0100
committerThomas Epting <thomas.epting@stryker.com>2016-12-18 20:17:39 +0000
commit8544d48d52fc432d4fe396e1b7904672418c05a5 (patch)
treeebdd60fc4af1899d7f6573f7d7c58e351ebc8d2c
parent415b873ea3d930f7853f9cf25f6c403e85e07101 (diff)
VS generator: Add missing trailing backslash to OutDir variable
Task-number: QBS-1080 Change-Id: I1b390dd31d10675f0e1f4fe3abdee2980909724d Reviewed-by: Jake Petroules <jake.petroules@qt.io>
-rw-r--r--src/lib/corelib/generators/visualstudio/msbuildqbsproductproject.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/corelib/generators/visualstudio/msbuildqbsproductproject.cpp b/src/lib/corelib/generators/visualstudio/msbuildqbsproductproject.cpp
index 81d0be8bb..bc14f3921 100644
--- a/src/lib/corelib/generators/visualstudio/msbuildqbsproductproject.cpp
+++ b/src/lib/corelib/generators/visualstudio/msbuildqbsproductproject.cpp
@@ -138,7 +138,9 @@ void MSBuildQbsProductProject::addConfiguration(const GeneratableProject &projec
debugBuild ? QStringLiteral("true") : QStringLiteral("false"));
// General - General
- propertyGroup1->appendProperty(QStringLiteral("OutDir"), relativeTargetDir);
+ // We need a trailing backslash for $(OutDir); See also the VS documentation:
+ // https://docs.microsoft.com/en-us/cpp/ide/common-macros-for-build-commands-and-properties
+ propertyGroup1->appendProperty(QStringLiteral("OutDir"), relativeTargetDir + QLatin1Char('\\'));
propertyGroup1->appendProperty(QStringLiteral("TargetName"), productData.targetName());
propertyGroup1->appendProperty(QStringLiteral("PlatformToolset"),
versionInfo().platformToolsetVersion());