diff options
Diffstat (limited to 'Source/cmSourceFilesCommand.cxx')
-rw-r--r-- | Source/cmSourceFilesCommand.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmSourceFilesCommand.cxx b/Source/cmSourceFilesCommand.cxx index 63d06e5..8117ee2 100644 --- a/Source/cmSourceFilesCommand.cxx +++ b/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, |