diff options
author | Michael Stürmer <michael.stuermer@schaeffler.com> | 2017-07-12 13:45:28 (GMT) |
---|---|---|
committer | Michael Stürmer <michael.stuermer@schaeffler.com> | 2017-07-12 13:45:28 (GMT) |
commit | 21ee3309b2a4d598bf933f644b41cd4840cde8c3 (patch) | |
tree | 9c93eb7724ddc2692b3948b2baca574170c59bbf /Source | |
parent | 5b67090d9f4201b145c9a9e99239c147d5e319c6 (diff) | |
download | CMake-21ee3309b2a4d598bf933f644b41cd4840cde8c3.zip CMake-21ee3309b2a4d598bf933f644b41cd4840cde8c3.tar.gz CMake-21ee3309b2a4d598bf933f644b41cd4840cde8c3.tar.bz2 |
VS: print comment in CSharp target only if it is actually set
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index e4a4d6f..5570593 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -3553,7 +3553,11 @@ void cmVisualStudio10TargetGenerator::WriteEvent( (*this->BuildFileStream) << cmVS10EscapeXML(comment) << "</Message>\n"; this->WriteString("<Command>", 3); } else { - if (!comment.empty()) { + std::string strippedComment = comment; + strippedComment.erase( + std::remove(strippedComment.begin(), strippedComment.end(), '\t'), + strippedComment.end()); + if (!comment.empty() && !strippedComment.empty()) { (*this->BuildFileStream) << "echo " << cmVS10EscapeXML(comment) << "\n"; } } |