Skip to content

[windows-11-arm] Install native arm64 CMake #84

@kasper93

Description

@kasper93

Type of issue

  • Error when running a workflow.
  • Request for additional tools or software for an existing image.
  • Request for a new image, Linux or Windows.
  • Other

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):

  • OS: windows-11-arm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions