Type of issue
Describe the issue
Current CMake binaries are x86_64. This causes the architecture detection issues. CMAKE_HOST_SYSTEM_PROCESSOR and CMAKE_SYSTEM_PROCESSOR are set to AMD64 when using emulated cmake binaries. While we expect them to be ARM64. This makes building native binaries more complicated than it should be.
To Reproduce
PS > file "C:\Program Files\CMake\bin\cmake.exe"
C:\Program Files\CMake\bin\cmake.exe: PE32+ executable for MS Windows 6.01 (console), x86-64, 7 sections
You can also reproduce with any CMake project and print CMAKE_HOST_SYSTEM_PROCESSOR or CMAKE_SYSTEM_PROCESSOR. And observe the value.
Expected behavior
PS > file "C:\Program Files\CMake\bin\cmake.exe"
C:\Program Files\CMake\bin\cmake.exe: PE32+ executable for MS Windows 6.02 (console), ARM64, 7 sections
CMAKE_HOST_SYSTEM_PROCESSOR and CMAKE_SYSTEM_PROCESSOR expected to be ARM64 by default.
Desktop (please complete the following information):
Type of issue
Describe the issue
Current CMake binaries are x86_64. This causes the architecture detection issues.
CMAKE_HOST_SYSTEM_PROCESSORandCMAKE_SYSTEM_PROCESSORare set toAMD64when using emulated cmake binaries. While we expect them to beARM64. This makes building native binaries more complicated than it should be.To Reproduce
You can also reproduce with any CMake project and print
CMAKE_HOST_SYSTEM_PROCESSORorCMAKE_SYSTEM_PROCESSOR. And observe the value.Expected behavior
CMAKE_HOST_SYSTEM_PROCESSORandCMAKE_SYSTEM_PROCESSORexpected to beARM64by default.Desktop (please complete the following information):
windows-11-arm