Browse Source

Merge topic 'vs-msbuild-arm64' into release-3.24

c165dd6a83 VS: Fix ARM64 host architecture detection in x86 binary

Acked-by: Kitware Robot <[email protected]>
Merge-request: !7525
Brad King 3 years ago
parent
commit
e18fb0c73e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmGlobalVisualStudioVersionedGenerator.cxx

+ 1 - 1
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()