diff options
author | Anton Lapounov <antonl@microsoft.com> | 2022-07-30 01:59:07 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-08-01 14:16:14 (GMT) |
commit | c165dd6a8338eeb4273eaf0d76cb094a3f8f837b (patch) | |
tree | 08968d378b0fea7587fc530cee999ee2d018817a /Source | |
parent | 5ead1d0a257e352c35ac63b78f4884058b17b8f9 (diff) | |
download | CMake-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.cxx | 2 |
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() |