From 6baf2119caaec5e44d75a9d4ab2ad61234c8f56c Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Tue, 22 Mar 2005 10:29:34 -0500 Subject: ENH: use better names for files --- Source/cmGlobalXCodeGenerator.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) 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] == '.') -- cgit v0.12