summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-06-27 20:42:57 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-06-27 20:42:57 (GMT)
commit4b12e5a3069367fe0c28c642b4f622fee83a7480 (patch)
treeba4d619ed38a2075a81585332826da4b7c4507b7
parent4d6433bdf6d9d531901c093d382ef80519063e29 (diff)
downloadCMake-4b12e5a3069367fe0c28c642b4f622fee83a7480.zip
CMake-4b12e5a3069367fe0c28c642b4f622fee83a7480.tar.gz
CMake-4b12e5a3069367fe0c28c642b4f622fee83a7480.tar.bz2
bug fix
-rw-r--r--Source/cmMakefile.cxx2
-rw-r--r--Source/cmSourceFilesCommand.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index d41e83a..00f4420 100644
--- a/Source/cmMakefile.cxx
+++ b/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)
diff --git a/Source/cmSourceFilesCommand.cxx b/Source/cmSourceFilesCommand.cxx
index 8117ee2..63d06e5 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(cmSystemTools::GetFilenameName(copy).c_str());
+ cmSourceFile* sf = m_Makefile->GetSource(copy.c_str());
if(sf)
{
// if the source file is already in the makefile,