mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 13:20:47 -06:00
VS: print comment in CSharp target only if it is actually set
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user