summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-01-20 11:53:24 -0500
committerBrad King <brad.king@kitware.com>2017-01-20 11:53:24 -0500
commit2b1cdd85b8943059e5f2b27735df261743749342 (patch)
tree952fdfe647b7df7774b3b9173c5d62af74947df2 /Source
parent35413bf2c1b33980afd418030af27f184872af6b (diff)
parent7f0a21a51eb483c523a2c8880ce4e0466251ec74 (diff)
downloadcmake-2b1cdd85b8943059e5f2b27735df261743749342.tar.gz
Merge branch 'case-insensitive-bindir-detection' into release
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 3d8fdf5936..e693bebff2 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -1979,7 +1979,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;