summaryrefslogtreecommitdiffstats
path: root/Source/cmXCodeObject.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-01-27 21:43:18 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-01-27 21:43:18 (GMT)
commite2ff9a73fa46b29b6d44378de1fd9369dceee308 (patch)
treedb69d587f1aa5c325dbac9c039ebc9affee509cf /Source/cmXCodeObject.cxx
parentdf730d29de051d6f05012f9765ac344a0fecf97f (diff)
downloadCMake-e2ff9a73fa46b29b6d44378de1fd9369dceee308.zip
CMake-e2ff9a73fa46b29b6d44378de1fd9369dceee308.tar.gz
CMake-e2ff9a73fa46b29b6d44378de1fd9369dceee308.tar.bz2
ENH: fix a few more xcode things
Diffstat (limited to 'Source/cmXCodeObject.cxx')
-rw-r--r--Source/cmXCodeObject.cxx22
1 files changed, 18 insertions, 4 deletions
diff --git a/Source/cmXCodeObject.cxx b/Source/cmXCodeObject.cxx
index e364687..3de51fa 100644
--- a/Source/cmXCodeObject.cxx
+++ b/Source/cmXCodeObject.cxx
@@ -50,14 +50,14 @@ void cmXCodeObject::Print(std::ostream& out)
}
else if(object->m_Type == OBJECT_LIST)
{
- out << i->first << " = {\n";
+ out << i->first << " = (\n";
for(unsigned int k = 0; k < i->second->m_List.size(); k++)
{
cmXCodeObject::Indent(4, out);
out << i->second->m_List[k]->m_Id << ",\n";
}
cmXCodeObject::Indent(3, out);
- out << "};\n";
+ out << ");\n";
}
else if(object->m_Type == ATTRIBUTE_GROUP)
{
@@ -66,7 +66,14 @@ void cmXCodeObject::Print(std::ostream& out)
for(j = object->m_ObjectAttributes.begin(); j != object->m_ObjectAttributes.end(); ++j)
{
cmXCodeObject::Indent(4, out);
- out << j->first << " = " << j->second->m_String << ";\n";
+ if(object->m_String.size() )
+ {
+ out << j->first << " = " << j->second->m_String << ";\n";
+ }
+ else
+ {
+ out << j->first << " = " << "\"\";\n";
+ }
}
cmXCodeObject::Indent(3, out);
out << "};\n";
@@ -77,7 +84,14 @@ void cmXCodeObject::Print(std::ostream& out)
}
else if(object->m_Type == STRING)
{
- out << i->first << " = " << object->m_String << ";\n";
+ if(object->m_String.size() )
+ {
+ out << i->first << " = " << object->m_String << ";\n";
+ }
+ else
+ {
+ out << i->first << " = " << "\"\";\n";
+ }
}
else
{