summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAnton Lapounov <antonl@microsoft.com>2022-07-30 01:59:07 (GMT)
committerBrad King <brad.king@kitware.com>2022-08-01 14:16:14 (GMT)
commitc165dd6a8338eeb4273eaf0d76cb094a3f8f837b (patch)
tree08968d378b0fea7587fc530cee999ee2d018817a /Source
parent5ead1d0a257e352c35ac63b78f4884058b17b8f9 (diff)
downloadCMake-c165dd6a8338eeb4273eaf0d76cb094a3f8f837b.zip
CMake-c165dd6a8338eeb4273eaf0d76cb094a3f8f837b.tar.gz
CMake-c165dd6a8338eeb4273eaf0d76cb094a3f8f837b.tar.bz2
VS: Fix ARM64 host architecture detection in x86 binary
Use the 64-bit registry view when we check whether Windows has the ARM64 version of the .NET Framework 4.x installed. Issue: #23755
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalVisualStudioVersionedGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalVisualStudioVersionedGenerator.cxx b/Source/cmGlobalVisualStudioVersionedGenerator.cxx
index 7eca963..7e36881 100644
--- a/Source/cmGlobalVisualStudioVersionedGenerator.cxx
+++ b/Source/cmGlobalVisualStudioVersionedGenerator.cxx
@@ -67,7 +67,7 @@ static bool VSHasDotNETFrameworkArm64()
std::string dotNetArm64;
return cmSystemTools::ReadRegistryValue(
"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\.NETFramework;InstallRootArm64",
- dotNetArm64);
+ dotNetArm64, cmSystemTools::KeyWOW64_64);
}
static bool VSIsWindows11OrGreater()