summaryrefslogtreecommitdiffstats
path: root/Help/guide/tutorial/Step10/MathFunctions/MathFunctions.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-07-26 14:27:36 (GMT)
committerBrad King <brad.king@kitware.com>2022-07-27 11:40:46 (GMT)
commit418fd8556918fa5639d79aca832f0213fb359a02 (patch)
tree6b296b6ec2ccc44782ab4a979a5fecc328115655 /Help/guide/tutorial/Step10/MathFunctions/MathFunctions.h
parentc508b3625a198cfe4b2f8fbf4acdc2127a28f2cb (diff)
downloadCMake-418fd8556918fa5639d79aca832f0213fb359a02.zip
CMake-418fd8556918fa5639d79aca832f0213fb359a02.tar.gz
CMake-418fd8556918fa5639d79aca832f0213fb359a02.tar.bz2
VS: Detect ARM64 host architecture at runtime
We use the host machine's architecture to select the `MSBuild.exe` binary variant, and the host toolset architecture. When CMake is compiled as `x64` or `x86` it may still run on ARM64 hosts. Detect the actual architecture of the host at runtime instead of relying on the architecture of CMake's own binary. The `arm64/MSBuild.exe` executable is an ARM64 .NET 4 application, which requires the ARM64 version of .NET Framework 4.8.1 to be installed on the machine. That version is not yet released for Windows 10; however, the `MSBuild/Current/Bin/arm64` directory is still created when installing Visual Studio 2022 (a user may upgrade to Windows 11 later). Use it only if the .NET Framework is installed. The `amd64/MSBuild.exe` executable cannot run on Windows 10 ARM64, but can run on Windows 11 ARM64. Fixes: #23755
Diffstat (limited to 'Help/guide/tutorial/Step10/MathFunctions/MathFunctions.h')
0 files changed, 0 insertions, 0 deletions