Merge branch 'fix-source-case-matching' into release

This commit is contained in:
Brad King 2014-11-26 17:17:41 -05:00
commit d7e4bd34e0
1 changed files with 2 additions and 1 deletions

View File

@ -216,7 +216,8 @@ bool cmSourceFileLocation::Matches(cmSourceFileLocation const& loc)
// Both extensions are similarly ambiguous. Since only the old fixed set
// of extensions will be tried, the names must match at this point to be
// the same file.
if(this->Name.size() != loc.Name.size() || this->Name != loc.Name)
if(this->Name.size() != loc.Name.size() ||
!cmSystemTools::ComparePath(this->Name, loc.Name))
{
return false;
}