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