summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-06-22 12:48:17 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-06-22 12:48:33 (GMT)
commit07a0c0a12bb9102670fc0dc2d73f485d72be562f (patch)
treec4cde077eba429cbb5d6d8dd6c9def3e3a70a012
parenta4df9babbb80b69e4de068c9286a5532f8b0de06 (diff)
parent80273514aa57003243e864567351727467c667c1 (diff)
downloadCMake-07a0c0a12bb9102670fc0dc2d73f485d72be562f.zip
CMake-07a0c0a12bb9102670fc0dc2d73f485d72be562f.tar.gz
CMake-07a0c0a12bb9102670fc0dc2d73f485d72be562f.tar.bz2
Merge topic 'use-arm64-msbuild'
80273514aa VS: Prefer ARM64 MSBuild on Windows ARM64 host Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7381
-rw-r--r--Source/cmGlobalVisualStudioVersionedGenerator.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudioVersionedGenerator.cxx b/Source/cmGlobalVisualStudioVersionedGenerator.cxx
index fb76f7a..b72fc4e 100644
--- a/Source/cmGlobalVisualStudioVersionedGenerator.cxx
+++ b/Source/cmGlobalVisualStudioVersionedGenerator.cxx
@@ -899,6 +899,14 @@ std::string cmGlobalVisualStudioVersionedGenerator::FindMSBuildCommand()
std::string vs;
if (vsSetupAPIHelper.GetVSInstanceInfo(vs)) {
if (this->Version >= cmGlobalVisualStudioGenerator::VSVersion::VS17) {
+#if defined(_M_ARM64)
+ std::string msbuild_arm64 =
+ vs + "/MSBuild/Current/Bin/arm64/MSBuild.exe";
+ if (cmSystemTools::FileExists(msbuild_arm64)) {
+ return msbuild_arm64;
+ }
+#endif
+
msbuild = vs + "/MSBuild/Current/Bin/amd64/MSBuild.exe";
if (cmSystemTools::FileExists(msbuild)) {
return msbuild;