...
Native CMake support for windows on arm is still in progress.has been completed and official installers are available now from official CMake download pages https://cmake.org/download/
Emulated CMake can be used successfully .Upstreamed changes to support visual studio generator - https://gitlab.kitware.com/cmake/cmake/-/merge_requests/7159 but is no longer required as native CMake support is available.
Getting CMake on win-arm64
Native |
Official Installers |
Build from source |
Unofficial pre-build binaries (with flang)*
x86 or x64 emulated | https://cmake.org/download/ - Windows i386 (Win 10) or Windows x86_64 (Win 11) | |
Python package | https://linaro.atlassian.net/wiki/spaces/WOAR/pages/28684353912/CMake#Python-distribution |
Build from source
...
Code Block |
---|
cmake -G "Ninja" -DCMAKE_C_COMPILER="cl.exe" -DCMAKE_CXX_COMPILER="cl.exe" -DCMAKE_LINKER="lld-link.exe" .. |
Example:
Code Block |
---|
cmake . -G "Ninja" -DCMAKE_C_COMPILER="c:\\kg\\tools\\LLVM-13.0.0-woa64\\bin\\clang-cl.exe" -DCMAKE_CXX_COMPILER="c:\\kg\\tools\\LLVM-13.0.0-woa64\\bin\\clang-cl.exe" -DCMAKE_LINKER="lld-link.exe"="c:\\kg\\tools\\LLVM-13.0.0-woa64\\bin\\lld-link.exe" |
Note |
---|
Environment variable for linker is ignored. |
...
This has been fixed with https://gitlab.kitware.com/cmake/cmake/-/merge_requests/7159