Merge topic 'fix-source-case-matching'
84d124e8
Fix lookup of source names after conversion to their actual case (#15259)
This commit is contained in:
commit
9f59caa9bd
|
@ -216,7 +216,8 @@ bool cmSourceFileLocation::Matches(cmSourceFileLocation const& loc)
|
||||||
// Both extensions are similarly ambiguous. Since only the old fixed set
|
// 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
|
// of extensions will be tried, the names must match at this point to be
|
||||||
// the same file.
|
// 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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue