Xcode.rst 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. Xcode
  2. -----
  3. Generate Xcode project files.
  4. This supports Xcode 5.0 and above.
  5. .. _`Xcode Build System Selection`:
  6. Toolset and Build System Selection
  7. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  8. By default Xcode is allowed to select its own default toolchain.
  9. The :variable:`CMAKE_GENERATOR_TOOLSET` option may be set, perhaps
  10. via the :manual:`cmake(1)` ``-T`` option, to specify another toolset.
  11. This generator supports toolset specification using one of these forms:
  12. * ``toolset``
  13. * ``toolset[,key=value]*``
  14. * ``key=value[,key=value]*``
  15. The ``toolset`` specifies the toolset name. The selected toolset name
  16. is provided in the :variable:`CMAKE_XCODE_PLATFORM_TOOLSET` variable.
  17. The ``key=value`` pairs form a comma-separated list of options to
  18. specify generator-specific details of the toolset selection.
  19. Supported pairs are:
  20. ``buildsystem=<variant>``
  21. Specify the buildsystem variant to use.
  22. See the :variable:`CMAKE_XCODE_BUILD_SYSTEM` variable for allowed values.
  23. For example, to select the original build system under Xcode 12,
  24. run :manual:`cmake(1)` with the option ``-T buildsystem=1``.