Ken Martin 23 년 전
부모
커밋
4b12e5a306
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      Source/cmMakefile.cxx
  2. 1 1
      Source/cmSourceFilesCommand.cxx

+ 1 - 1
Source/cmMakefile.cxx

@@ -1323,7 +1323,7 @@ cmData* cmMakefile::LookupData(const char* name) const
 
 cmSourceFile* cmMakefile::GetSource(const char* sourceName) const
 {
-  std::string s = sourceName;
+  std::string s = cmSystemTools::GetFilenameName(sourceName);
   std::string ext;
   std::string::size_type pos = s.rfind('.');
   if(pos != std::string::npos)

+ 1 - 1
Source/cmSourceFilesCommand.cxx

@@ -58,7 +58,7 @@ bool cmSourceFilesCommand::InitialPass(std::vector<std::string> const& argsIn)
       generated = 1;
       continue;
       }
-    cmSourceFile* sf = m_Makefile->GetSource(cmSystemTools::GetFilenameName(copy).c_str());
+    cmSourceFile* sf = m_Makefile->GetSource(copy.c_str());
     if(sf)
       {
       // if the source file is already in the makefile,