summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-06-12 15:19:07 (GMT)
committerBrad King <brad.king@kitware.com>2018-06-12 15:19:07 (GMT)
commit051e0be742071fdd5eca2bc90f372422f27fd1fa (patch)
treeaaf0a3b2b14cbbb0c556f26c7710d1bec00d4c51
parent2ccd426045cbd6357b349c50f97e86394742b9c3 (diff)
parent4e6ff0ae247847ae5a2996d59106d8dc4aacced4 (diff)
downloadCMake-051e0be742071fdd5eca2bc90f372422f27fd1fa.zip
CMake-051e0be742071fdd5eca2bc90f372422f27fd1fa.tar.gz
CMake-051e0be742071fdd5eca2bc90f372422f27fd1fa.tar.bz2
Merge branch 'restore-windows-resources-through-link' into release-3.11
Merge-request: !2147
-rw-r--r--Source/cmSystemTools.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 6f326de..9575c05 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -2117,7 +2117,8 @@ void cmSystemTools::FindCMakeResources(const char* argv0)
wchar_t modulepath[_MAX_PATH];
::GetModuleFileNameW(NULL, modulepath, sizeof(modulepath));
std::string path = cmsys::Encoding::ToNarrow(modulepath);
- std::string realPath = cmSystemTools::GetRealPath(path, NULL);
+ std::string realPath =
+ cmSystemTools::GetRealPathResolvingWindowsSubst(path, NULL);
if (realPath.empty()) {
realPath = path;
}