CMAKE_XCODE_ATTRIBUTE_an-attribute.rst 997 B

123456789101112131415161718192021222324
  1. CMAKE_XCODE_ATTRIBUTE_<an-attribute>
  2. ------------------------------------
  3. .. versionadded:: 3.1
  4. Set Xcode target attributes directly.
  5. Tell the :generator:`Xcode` generator to set ``<an-attribute>`` to a given
  6. value in the generated Xcode project. Ignored on other generators.
  7. This offers low-level control over the generated Xcode project file.
  8. It is meant as a last resort for specifying settings that CMake does
  9. not otherwise have a way to control. Although this can override a
  10. setting CMake normally produces on its own, doing so bypasses CMake's
  11. model of the project and can break things.
  12. See the :prop_tgt:`XCODE_ATTRIBUTE_<an-attribute>` target property
  13. to set attributes on a specific target.
  14. Contents of ``CMAKE_XCODE_ATTRIBUTE_<an-attribute>`` may use
  15. "generator expressions" with the syntax ``$<...>``. See the
  16. :manual:`cmake-generator-expressions(7)` manual for available
  17. expressions. See the :manual:`cmake-buildsystem(7)` manual
  18. for more on defining buildsystem properties.