summaryrefslogtreecommitdiff
path: root/Source/cmXCodeObject.cxx
diff options
context:
space:
mode:
authorGregor Jasny <gjasny@googlemail.com>2015-04-07 22:00:29 +0200
committerGregor Jasny <gjasny@googlemail.com>2015-04-17 21:50:04 +0200
commit4bd2544b25655b6e20e5098a5f4cdd973288c106 (patch)
treea47418ca15ee266a122b12049874eb95ca024724 /Source/cmXCodeObject.cxx
parent5cb4c8380d9a0f5922a2eed60f6a1fd1274e9141 (diff)
downloadcmake-4bd2544b25655b6e20e5098a5f4cdd973288c106.tar.gz
Xcode: Do not add whitespace after attribute group opening brace
This suppresses the extra space that would be generated if the separator is a space. The conditional block is also used in this form elsewhere.
Diffstat (limited to 'Source/cmXCodeObject.cxx')
-rw-r--r--Source/cmXCodeObject.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmXCodeObject.cxx b/Source/cmXCodeObject.cxx
index 519545ac9a..72d8e99ba5 100644
--- a/Source/cmXCodeObject.cxx
+++ b/Source/cmXCodeObject.cxx
@@ -139,7 +139,11 @@ void cmXCodeObject::Print(std::ostream& out)
else if(object->TypeValue == ATTRIBUTE_GROUP)
{
std::map<std::string, cmXCodeObject*>::iterator j;
- out << i->first << " = {" << separator;
+ out << i->first << " = {";
+ if(separator == "\n")
+ {
+ out << separator;
+ }
for(j = object->ObjectAttributes.begin(); j !=
object->ObjectAttributes.end(); ++j)
{