summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-04-21 12:54:34 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-04-21 12:54:38 (GMT)
commit59f07efd592330be3018fcaa253498475055a4af (patch)
tree595355b670100439c8c447c537ba1a1c2e609505
parent5b241d0ae86569399275e1fc57b403cfb13f7c35 (diff)
parentfd7e8f339a766b1bd4b4eca3fc96e4aac8cfb218 (diff)
downloadCMake-59f07efd592330be3018fcaa253498475055a4af.zip
CMake-59f07efd592330be3018fcaa253498475055a4af.tar.gz
CMake-59f07efd592330be3018fcaa253498475055a4af.tar.bz2
Merge topic 'fix-vs2017-guid-braces'
fd7e8f33 VS: Fix project reference inspection in VS IDE Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !727
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 18b93f6..adf5f74 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -3395,13 +3395,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";