CMAKE_SYSTEM_HOST_PROCESSOR and CMAKE_SYSTEM_PROCESSOR wrong

I use this value to pull specific cross compiled artifacts from our artifactory server.

This time I am NOT cross compiling. I am compiling on a arm64 board. (aarch64)

uname -m returns “aarch64”

Both CMAKE_SYSTEM_HOST _PROCESSOR and CMAKE_SYSTEM_PROCESSOR are just “Linux”

Building on a raspberrypi 4 with CMake version 3.27.1 built from source on the pi.

even after deleting CMAkeCache it persisted but then suddenly it started returning aarch64.

Working now. not sure what i was doing to confuse it.

Without a reproducer case, it’ll be hard to know what’s going on here. If it happens again, please try to grab exact commands and environment information so that it can be investigated.