summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-03-22 15:29:34 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-03-22 15:29:34 (GMT)
commit6baf2119caaec5e44d75a9d4ab2ad61234c8f56c (patch)
treeb9f3c85946e9a461b8eee68144736ac6492e2aca
parentaa69a14495d05145ffbb835a8e3b32b0e449d56e (diff)
downloadCMake-6baf2119caaec5e44d75a9d4ab2ad61234c8f56c.zip
CMake-6baf2119caaec5e44d75a9d4ab2ad61234c8f56c.tar.gz
CMake-6baf2119caaec5e44d75a9d4ab2ad61234c8f56c.tar.bz2
ENH: use better names for files
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index ac9a3ca..40a0409 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -392,6 +392,15 @@ cmGlobalXCodeGenerator::CreateXCodeSourceFile(cmLocalGenerator* lg,
this->CreateString(sourcecode.c_str()));
std::string path =
this->ConvertToRelativeForXCode(sf->GetFullPath().c_str());
+ std::string file =
+ cmSystemTools::RelativePath(m_CurrentMakefile->GetHomeDirectory(),
+ sf->GetFullPath().c_str());
+// std::string dir;
+// std::string file;
+// cmSystemTools::SplitProgramPath(sf->GetFullPath().c_str(),
+// dir, file);
+
+ fileRef->AddAttribute("name", this->CreateString(file.c_str()));
fileRef->AddAttribute("path", this->CreateString(path.c_str()));
fileRef->AddAttribute("refType", this->CreateString("4"));
if(path.size() > 1 && path[0] == '.' && path[1] == '.')