ENH: just use the file name
This commit is contained in:
parent
213040b612
commit
89b31c4f81
|
@ -392,13 +392,13 @@ cmGlobalXCodeGenerator::CreateXCodeSourceFile(cmLocalGenerator* lg,
|
||||||
this->CreateString(sourcecode.c_str()));
|
this->CreateString(sourcecode.c_str()));
|
||||||
std::string path =
|
std::string path =
|
||||||
this->ConvertToRelativeForXCode(sf->GetFullPath().c_str());
|
this->ConvertToRelativeForXCode(sf->GetFullPath().c_str());
|
||||||
std::string file =
|
// std::string file =
|
||||||
cmSystemTools::RelativePath(m_CurrentMakefile->GetHomeDirectory(),
|
// cmSystemTools::RelativePath(m_CurrentMakefile->GetHomeDirectory(),
|
||||||
sf->GetFullPath().c_str());
|
// sf->GetFullPath().c_str());
|
||||||
// std::string dir;
|
std::string dir;
|
||||||
// std::string file;
|
std::string file;
|
||||||
// cmSystemTools::SplitProgramPath(sf->GetFullPath().c_str(),
|
cmSystemTools::SplitProgramPath(sf->GetFullPath().c_str(),
|
||||||
// dir, file);
|
dir, file);
|
||||||
|
|
||||||
fileRef->AddAttribute("name", this->CreateString(file.c_str()));
|
fileRef->AddAttribute("name", this->CreateString(file.c_str()));
|
||||||
fileRef->AddAttribute("path", this->CreateString(path.c_str()));
|
fileRef->AddAttribute("path", this->CreateString(path.c_str()));
|
||||||
|
|
Loading…
Reference in New Issue