summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-06-13 10:52:01 -0400
committerBrad King <brad.king@kitware.com>2018-06-13 10:52:01 -0400
commit985c78c7e1ec93662691c4b078dad847b715a991 (patch)
tree78e2b33f5c21bb609c5b907df58c3aaa845f4117
parent93fe9fc1a218ac96756cf8181a2d3421ab090192 (diff)
parent4e6ff0ae247847ae5a2996d59106d8dc4aacced4 (diff)
downloadcmake-985c78c7e1ec93662691c4b078dad847b715a991.tar.gz
Merge branch 'restore-windows-resources-through-link' into release-3.12
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 14f058010f..72fd2bbf94 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -2131,7 +2131,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;
}