diff options
author | Gregor Jasny <gjasny@googlemail.com> | 2015-04-09 08:48:33 (GMT) |
---|---|---|
committer | Gregor Jasny <gjasny@googlemail.com> | 2015-04-17 19:50:05 (GMT) |
commit | a6331eb851c132d3d0496e738886ad76e13a92a0 (patch) | |
tree | 8a32172d36694634e8452e5d80d72d5b3ec8423f /Source/cmXCode21Object.cxx | |
parent | 6e8952c19385acb0ff9f58c2a462d91dd0624e05 (diff) | |
download | CMake-a6331eb851c132d3d0496e738886ad76e13a92a0.zip CMake-a6331eb851c132d3d0496e738886ad76e13a92a0.tar.gz CMake-a6331eb851c132d3d0496e738886ad76e13a92a0.tar.bz2 |
Xcode: Let PrintComment decide if the comment is non-empty
Diffstat (limited to 'Source/cmXCode21Object.cxx')
-rw-r--r-- | Source/cmXCode21Object.cxx | 4 |
1 files changed, 4 insertions, 0 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 << " */"; |