Browse Source

more changes to handle full paths correctly

Ken Martin 22 years ago
parent
commit
adbb5c5e79
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Source/cmMakefile.cxx

+ 2 - 2
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;
     }