Procházet zdrojové kódy

ENH: just use the file name

Andy Cedilnik před 20 roky
rodič
revize
89b31c4f81
1 změnil soubory, kde provedl 7 přidání a 7 odebrání
  1. 7 7
      Source/cmGlobalXCodeGenerator.cxx

+ 7 - 7
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()));