diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-03-22 18:32:42 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-03-22 18:32:42 (GMT) |
commit | 89b31c4f816fb0e1e72cd3b0190528b48d920dbf (patch) | |
tree | c662c26b99288235f9dbcb76f489bbdfee0b6408 | |
parent | 213040b612c56e6e833d8a239b79c50051363ef8 (diff) | |
download | CMake-89b31c4f816fb0e1e72cd3b0190528b48d920dbf.zip CMake-89b31c4f816fb0e1e72cd3b0190528b48d920dbf.tar.gz CMake-89b31c4f816fb0e1e72cd3b0190528b48d920dbf.tar.bz2 |
ENH: just use the file name
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index 40a0409..b9d88a4 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -392,13 +392,13 @@ 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); +// 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())); |