Ken Martin 24 years ago
parent
commit
4d6433bdf6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmSourceFilesCommand.cxx

+ 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(copy.c_str());
+    cmSourceFile* sf = m_Makefile->GetSource(cmSystemTools::GetFilenameName(copy).c_str());
     if(sf)
       {
       // if the source file is already in the makefile,