summaryrefslogtreecommitdiffstats
path: root/Source/cmSourceFilesCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-06-27 20:25:19 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-06-27 20:25:19 (GMT)
commit4d6433bdf6d9d531901c093d382ef80519063e29 (patch)
tree4499a8219b9d7de25b4bb788ae909f0caba18261 /Source/cmSourceFilesCommand.cxx
parent7cd492d443eff6b0311e4be9ead0f338787301e1 (diff)
downloadCMake-4d6433bdf6d9d531901c093d382ef80519063e29.zip
CMake-4d6433bdf6d9d531901c093d382ef80519063e29.tar.gz
CMake-4d6433bdf6d9d531901c093d382ef80519063e29.tar.bz2
bug fix
Diffstat (limited to 'Source/cmSourceFilesCommand.cxx')
-rw-r--r--Source/cmSourceFilesCommand.cxx2
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,