CMAKE_APPLE_SILICON_PROCESSOR

在 3.19.2 版被加入.

這是一個 CMake 環境變數。其初始值取自呼叫的進程環境。

On Apple Silicon hosts running macOS, set this environment variable to tell CMake what architecture to use for CMAKE_HOST_SYSTEM_PROCESSOR. The value must be either arm64 or x86_64.

The CMAKE_APPLE_SILICON_PROCESSOR normal variable, if set, overrides this environment variable.