summaryrefslogtreecommitdiff
path: root/Source/cmSourceFileLocation.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-12-01 08:57:25 -0500
committerCMake Topic Stage <kwrobot@kitware.com>2014-12-01 08:57:25 -0500
commit9f59caa9bd1aba3de27aa2fbab89b56c6b99d9b9 (patch)
tree1e1866d6798a0eff6aa27730a13ee73de20791f8 /Source/cmSourceFileLocation.cxx
parentd724640fa22e315b28f994fbcda43ad006b4f57f (diff)
parent84d124e8f02d5bba60d3491d4c5d7cb68aa91192 (diff)
downloadcmake-9f59caa9bd1aba3de27aa2fbab89b56c6b99d9b9.tar.gz
Merge topic 'fix-source-case-matching'
84d124e8 Fix lookup of source names after conversion to their actual case (#15259)
Diffstat (limited to 'Source/cmSourceFileLocation.cxx')
-rw-r--r--Source/cmSourceFileLocation.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmSourceFileLocation.cxx b/Source/cmSourceFileLocation.cxx
index efc4376ee3..b81951dac9 100644
--- a/Source/cmSourceFileLocation.cxx
+++ b/Source/cmSourceFileLocation.cxx
@@ -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;
}