summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-01-20 16:54:37 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2017-01-20 16:54:37 (GMT)
commit0f891007a902a79acf746479f6bfe19b96899cef (patch)
tree8336c4ad74b71b46deeb4d98ab767e17b548f8c3 /Source
parent395f01ef728b3c41b2cab020aff381814244ebe1 (diff)
parent7f0a21a51eb483c523a2c8880ce4e0466251ec74 (diff)
downloadCMake-0f891007a902a79acf746479f6bfe19b96899cef.zip
CMake-0f891007a902a79acf746479f6bfe19b96899cef.tar.gz
CMake-0f891007a902a79acf746479f6bfe19b96899cef.tar.bz2
Merge topic 'case-insensitive-bindir-detection'
7f0a21a5 cmSystemTools: use the actual case for root detection
Diffstat (limited to 'Source')
-rw-r--r--Source/cmSystemTools.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index a635bf4..9efc13b 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -2015,7 +2015,8 @@ void cmSystemTools::FindCMakeResources(const char* argv0)
// Install tree has
// - "<prefix><CMAKE_BIN_DIR>/cmake"
// - "<prefix><CMAKE_DATA_DIR>"
- if (cmHasSuffix(exe_dir, CMAKE_BIN_DIR)) {
+ const std::string actual_case = cmSystemTools::GetActualCaseForPath(exe_dir);
+ if (cmHasSuffix(actual_case, CMAKE_BIN_DIR)) {
std::string const prefix =
exe_dir.substr(0, exe_dir.size() - strlen(CMAKE_BIN_DIR));
cmSystemToolsCMakeRoot = prefix + CMAKE_DATA_DIR;