mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-04 13:19:51 -05:00
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
This commit is contained in:
committed by
Brad King
parent
5ead1d0a25
commit
c165dd6a83
@@ -67,7 +67,7 @@ static bool VSHasDotNETFrameworkArm64()
|
|||||||
std::string dotNetArm64;
|
std::string dotNetArm64;
|
||||||
return cmSystemTools::ReadRegistryValue(
|
return cmSystemTools::ReadRegistryValue(
|
||||||
"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\.NETFramework;InstallRootArm64",
|
"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\.NETFramework;InstallRootArm64",
|
||||||
dotNetArm64);
|
dotNetArm64, cmSystemTools::KeyWOW64_64);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool VSIsWindows11OrGreater()
|
static bool VSIsWindows11OrGreater()
|
||||||
|
|||||||
Reference in New Issue
Block a user