mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-06 04:03:27 +03:00
VS: print comment in CSharp target only if it is actually set
This commit is contained in:
1 parent
5b67090d9f
commit
21ee3309b2
1 file changed
+5
-1
@@ -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