summaryrefslogtreecommitdiffstats
path: root/Source/cmXCodeObject.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-02-07 22:36:34 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-02-07 22:36:34 (GMT)
commit0bc51d181d62ae64c69d09aaf748aeee904645c8 (patch)
tree71d40ccad111da1386ba426f40399896da7af84f /Source/cmXCodeObject.cxx
parent16b9edd17b89209b4a71804e252bfd5613d224e5 (diff)
downloadCMake-0bc51d181d62ae64c69d09aaf748aeee904645c8.zip
CMake-0bc51d181d62ae64c69d09aaf748aeee904645c8.tar.gz
CMake-0bc51d181d62ae64c69d09aaf748aeee904645c8.tar.bz2
ENH: fix bug in target linking
Diffstat (limited to 'Source/cmXCodeObject.cxx')
-rw-r--r--Source/cmXCodeObject.cxx28
1 files changed, 23 insertions, 5 deletions
diff --git a/Source/cmXCodeObject.cxx b/Source/cmXCodeObject.cxx
index cf75a96..b315b23 100644
--- a/Source/cmXCodeObject.cxx
+++ b/Source/cmXCodeObject.cxx
@@ -25,12 +25,20 @@ cmXCodeObject::cmXCodeObject(PBXType ptype, Type type)
m_Object =0;
m_IsA = ptype;
- cmOStringStream str;
- str << (void*)this;
- str << (void*)this;
- str << (void*)this;
- m_Id = str.str();
+ if(type == OBJECT)
+ {
+ cmOStringStream str;
+ str << (void*)this;
+ str << (void*)this;
+ str << (void*)this;
+ m_Id = str.str();
+ }
+ else
+ {
+ m_Id = "Temporary cmake object, should not be refered to in xcode file";
+ }
cmSystemTools::ReplaceString(m_Id, "0x", "");
+ m_Id = cmSystemTools::UpperCase(m_Id);
if(m_Id.size() < 24)
{
int diff = 24 - m_Id.size();
@@ -126,3 +134,13 @@ void cmXCodeObject::PrintList(std::vector<cmXCodeObject*> const& objs,
cmXCodeObject::Indent(1, out);
out << "};\n";
}
+
+
+void cmXCodeObject::CopyAttributes(cmXCodeObject* copy)
+{
+ this->m_ObjectAttributes = copy->m_ObjectAttributes;
+ this->m_List = copy->m_List;
+ this->m_String = copy->m_String;
+ this->m_Object = copy->m_Object;
+}
+