CMAKE_APPLE_SILICON_PROCESSOR.rst 534 B

1234567891011121314
  1. CMAKE_APPLE_SILICON_PROCESSOR
  2. -----------------------------
  3. .. versionadded:: 3.19.2
  4. On Apple Silicon hosts running macOS, set this variable to tell
  5. CMake what architecture to use for :variable:`CMAKE_HOST_SYSTEM_PROCESSOR`.
  6. The value must be either ``arm64`` or ``x86_64``.
  7. The value of this variable should never be modified by project code.
  8. It is meant to be set as a cache entry provided by the user,
  9. e.g. via ``-DCMAKE_APPLE_SILICON_PROCESSOR=...``.
  10. See also the :envvar:`CMAKE_APPLE_SILICON_PROCESSOR` environment variable.