---
 Source/cmXCode21Object.cxx | 4 ++++
 Source/cmXCodeObject.cxx   | 5 +----
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/Source/cmXCode21Object.cxx b/Source/cmXCode21Object.cxx
index 96f7b0f..f30f700 100644
--- a/Source/cmXCode21Object.cxx
+++ b/Source/cmXCode21Object.cxx
@@ -31,6 +31,10 @@ void cmXCode21Object::PrintComment(std::ostream& out)
       cmSystemTools::ReplaceString(this->Comment, "\"", "");
       }
     }
+  if(this->Comment.empty())
+    {
+    return;
+    }
   out << " /* ";
   out << this->Comment;
   out << " */";
diff --git a/Source/cmXCodeObject.cxx b/Source/cmXCodeObject.cxx
index e41f282..b9c41f3 100644
--- a/Source/cmXCodeObject.cxx
+++ b/Source/cmXCodeObject.cxx
@@ -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")
     {
-- 
2.3.3

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to