diff options
author | Brad King <brad.king@kitware.com> | 2017-04-21 12:54:34 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-04-21 12:54:38 (GMT) |
commit | 59f07efd592330be3018fcaa253498475055a4af (patch) | |
tree | 595355b670100439c8c447c537ba1a1c2e609505 | |
parent | 5b241d0ae86569399275e1fc57b403cfb13f7c35 (diff) | |
parent | fd7e8f339a766b1bd4b4eca3fc96e4aac8cfb218 (diff) | |
download | CMake-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.cxx | 9 |
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"; |