summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-01-27 22:09:09 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-01-27 22:09:09 (GMT)
commitb9982e4b60408b3be2f05b7955a5b06393db04c6 (patch)
treef117452c7214d0a86c5de73deac1bab595dbd2fe /Source
parent29f9516e195ed619d611b879c8f7a2815574f3e9 (diff)
downloadCMake-b9982e4b60408b3be2f05b7955a5b06393db04c6.zip
CMake-b9982e4b60408b3be2f05b7955a5b06393db04c6.tar.gz
CMake-b9982e4b60408b3be2f05b7955a5b06393db04c6.tar.bz2
ENH: xcode almost working for simple exe, but not yet
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx6
-rw-r--r--Source/cmXCodeObject.cxx3
2 files changed, 6 insertions, 3 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index 0a42643..14b4e31 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -188,15 +188,15 @@ void cmGlobalXCodeGenerator::CreateXCodeTargets(cmLocalGenerator* gen,
target->AddAttribute("name", this->CreateString(l->first.c_str()));
target->AddAttribute("productName",this->CreateString(l->first.c_str()));
cmXCodeObject* fileRef = this->CreateObject(cmXCodeObject::PBXFileReference);
- fileRef->AddAttribute("explicitFileType", this->CreateString("compiled.mach-o.executable"));
+ fileRef->AddAttribute("explicitFileType", this->CreateString("\"compiled.mach-o.executable\""));
fileRef->AddAttribute("includedInIndex", this->CreateString("0"));
fileRef->AddAttribute("path", this->CreateString(l->first.c_str()));
fileRef->AddAttribute("refType", this->CreateString("3"));
fileRef->AddAttribute("sourceTree", this->CreateString("BUILT_PRODUCTS_DIR"));
cmXCodeObject* fileRefPtr = this->CreateObject(cmXCodeObject::OBJECT_REF);
- fileRefPtr->AddObject(fileRef);
+ fileRefPtr->SetObject(fileRef);
target->AddAttribute("productReference", fileRefPtr);
- target->AddAttribute("productReference", this->CreateString("com.apple.product-type.tool"));
+ target->AddAttribute("productType", this->CreateString("\"com.apple.product-type.tool\""));
}
else if (l->second.GetType() == cmTarget::UTILITY)
{
diff --git a/Source/cmXCodeObject.cxx b/Source/cmXCodeObject.cxx
index 3de51fa..262729a 100644
--- a/Source/cmXCodeObject.cxx
+++ b/Source/cmXCodeObject.cxx
@@ -1,4 +1,6 @@
#include "cmXCodeObject.h"
+#include "cmSystemTools.h"
+
const char* cmXCodeObject::PBXTypeNames[] = {
"PBXGroup", "PBXBuildStyle", "PBXProject", "PBXHeadersBuildPhase",
"PBXSourcesBuildPhase", "PBXFrameworksBuildPhase", "PBXNativeTarget",
@@ -17,6 +19,7 @@ cmXCodeObject::cmXCodeObject(PBXType ptype, Type type)
str << (void*)this;
str << (void*)this;
m_Id = str.str();
+ cmSystemTools::ReplaceString(m_Id, "0x", "");
m_Type = type;
if(m_Type == OBJECT)
{