mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 22:30:07 -05:00
Xcode: Let PrintComment decide if the comment is non-empty
This commit is contained in:
@@ -31,6 +31,10 @@ void cmXCode21Object::PrintComment(std::ostream& out)
|
||||
cmSystemTools::ReplaceString(this->Comment, "\"", "");
|
||||
}
|
||||
}
|
||||
if(this->Comment.empty())
|
||||
{
|
||||
return;
|
||||
}
|
||||
out << " /* ";
|
||||
out << this->Comment;
|
||||
out << " */";
|
||||
|
||||
@@ -99,10 +99,7 @@ void cmXCodeObject::Print(std::ostream& out)
|
||||
indentFactor = 0;
|
||||
}
|
||||
out << this->Id;
|
||||
if(!(this->IsA == PBXGroup && this->Comment.size() == 0))
|
||||
{
|
||||
this->PrintComment(out);
|
||||
}
|
||||
this->PrintComment(out);
|
||||
out << " = {";
|
||||
if(separator == "\n")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user