summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-08-25 13:17:17 (GMT)
committerBrad King <brad.king@kitware.com>2016-08-25 13:17:17 (GMT)
commitf325ae186d5d235cb90f4fb002a8df56abc050f8 (patch)
treea3f4719e9c07705c8e49646f2eb99f13d083da43 /Source/cmVisualStudio10TargetGenerator.cxx
parent00a583ac6833bdb2909d1bab1bffb28fb6c2b245 (diff)
downloadCMake-f325ae186d5d235cb90f4fb002a8df56abc050f8.zip
CMake-f325ae186d5d235cb90f4fb002a8df56abc050f8.tar.gz
CMake-f325ae186d5d235cb90f4fb002a8df56abc050f8.tar.bz2
VS: Use target-specific directory for `resources.pri`
Set the `ProjectPriFullPath` field to a value that is unique to each target and not shared with others in order to avoid collisions. Closes: #16106
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index c33a291..1b1d04b 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -2741,9 +2741,9 @@ void cmVisualStudio10TargetGenerator::WriteWinRTPackageCertificateKeyFile()
this->WriteString("<AppxPackageArtifactsDir>", 2);
(*this->BuildFileStream) << cmVS10EscapeXML(artifactDir)
<< "\\</AppxPackageArtifactsDir>\n";
- this->WriteString("<ProjectPriFullPath>"
- "$(TargetDir)resources.pri</ProjectPriFullPath>\n",
- 2);
+ this->WriteString("<ProjectPriFullPath>", 2);
+ (*this->BuildFileStream) << cmVS10EscapeXML(artifactDir)
+ << "\\resources.pri</ProjectPriFullPath>\n";
// If we are missing files and we don't have a certificate and
// aren't targeting WP8.0, add a default certificate