summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorRichard Walters <rwalters@qti.qualcomm.com>2017-04-19 21:55:56 (GMT)
committerBrad King <brad.king@kitware.com>2017-04-20 14:30:21 (GMT)
commitfd7e8f339a766b1bd4b4eca3fc96e4aac8cfb218 (patch)
tree67f1d1c5d43eb8c65c4ce026e0280b77ba8c1f4d /Source/cmVisualStudio10TargetGenerator.cxx
parenta6a0cfb24d637063bdb1c8e9e8ceb78cac3f90ac (diff)
downloadCMake-fd7e8f339a766b1bd4b4eca3fc96e4aac8cfb218.zip
CMake-fd7e8f339a766b1bd4b4eca3fc96e4aac8cfb218.tar.gz
CMake-fd7e8f339a766b1bd4b4eca3fc96e4aac8cfb218.tar.bz2
VS: Fix project reference inspection in VS IDE
The braces around project reference GUIDs for vcxproj projects were apparently optional in the past, but Visual Studio 2017 is more strict, displaying a warning, and not displaying project reference properties unless the braces are present. Fixes: #16820
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 902fe03..cb6afe1 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -3194,13 +3194,8 @@ void cmVisualStudio10TargetGenerator::WriteProjectReferences()
this->ConvertToWindowsSlash(path);
(*this->BuildFileStream) << cmVS10EscapeXML(path) << "\">\n";
this->WriteString("<Project>", 3);
- if (csproj == this->ProjectType) {
- (*this->BuildFileStream) << "{";
- }
- (*this->BuildFileStream) << this->GlobalGenerator->GetGUID(name.c_str());
- if (csproj == this->ProjectType) {
- (*this->BuildFileStream) << "}";
- }
+ (*this->BuildFileStream)
+ << "{" << this->GlobalGenerator->GetGUID(name.c_str()) << "}";
(*this->BuildFileStream) << "</Project>\n";
this->WriteString("<Name>", 3);
(*this->BuildFileStream) << name << "</Name>\n";