CMAKE_APPLE_SILICON_PROCESSOR.rst 617 B

123456789101112131415
  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 by a toolchain file specified by the
  9. :variable:`CMAKE_TOOLCHAIN_FILE` variable, or as a cache entry
  10. provided by the user, e.g. via ``-DCMAKE_APPLE_SILICON_PROCESSOR=...``.
  11. See also the :envvar:`CMAKE_APPLE_SILICON_PROCESSOR` environment variable.