macOS: cmake detect system processor incorrectly on Apple Silicon?

I install the cmake from homebrew.
The issue found when I build OpenCV from source code.
And I found the CMAKE_SYSTEM_PROCESSOR=“x86_64” after the function enable_language(CXX C) done.