Bug: FindPython arch detection is bad with Windows on Arm

Python architecture ID is aarch64, which does not contain ARM, thus fails the match.

CMake\share\cmake-4.4\Modules\FindPython\Support.cmake:1206

My current patch is changing the line to
if ((\_${\_PYTHON_PREFIX}*ARCHITECTURE_ID MATCHES "ARM") OR (*${\_PYTHON_PREFIX}\_ARCHITECTURE_ID MATCHES "aarch"))

It seems that, depending on the compiler, CMAKE__COMPILER_ARCHITECTURE_ID variable is different.

What is your CMake generator as well as compiler?

Ninja and LLVM22.1.8
Could it be a change in LLVM? I couldn’t tell since I just updated both.

Ok. I think I understood the problem. As specified by the documentation of CMAKE_LANG_COMPILER_ARCHITECTURE_ID variable, the value depends on the ABI (GNU or MSVC).

Please, can you log an issue for this problem?

Thanks.