summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2003-06-05 19:18:16 (GMT)
committerKen Martin <ken.martin@kitware.com>2003-06-05 19:18:16 (GMT)
commitadbb5c5e79cae2235727309d40e1f7d0d195de1c (patch)
treec63a88724eb7aa3e5cc99957c79537eb47af0dd9 /Source/cmMakefile.cxx
parent59c70d9df7539c185a3321e4aec3a77adc3cf83b (diff)
downloadCMake-adbb5c5e79cae2235727309d40e1f7d0d195de1c.zip
CMake-adbb5c5e79cae2235727309d40e1f7d0d195de1c.tar.gz
CMake-adbb5c5e79cae2235727309d40e1f7d0d195de1c.tar.bz2
more changes to handle full paths correctly
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 0aacb35..b256314 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -1722,8 +1722,8 @@ cmSourceFile* cmMakefile::GetOrCreateSource(const char* sourceName,
cmSourceFile* cmMakefile::AddSource(cmSourceFile const&sf)
{
// check to see if it exists
- cmSourceFile* ret = this->GetSource(sf.GetSourceName().c_str());
- if(ret && ret->GetSourceExtension() == sf.GetSourceExtension())
+ cmSourceFile* ret = this->GetSource(sf.GetFullPath().c_str());
+ if(ret)
{
return ret;
}