From adbb5c5e79cae2235727309d40e1f7d0d195de1c Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Thu, 5 Jun 2003 15:18:16 -0400 Subject: [PATCH] more changes to handle full paths correctly --- Source/cmMakefile.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 0aacb3583..b256314cc 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; }