Commit 38f81fab authored by Brad King's avatar Brad King Committed by Kitware Robot

Merge topic 'vs_csharp_add_custom_command_comment'

21ee3309 VS: print comment in CSharp target only if it is actually set
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !1049
parents 652b2956 21ee3309
......@@ -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";
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment