INTERFACE_COMPILE_FEATURES.rst 719 B

12345678910111213141516
  1. INTERFACE_COMPILE_FEATURES
  2. --------------------------
  3. List of public compile requirements for a library.
  4. Targets may populate this property to publish the compiler features
  5. required to compile against the headers for the target. Consuming
  6. targets can add entries to their own :prop_tgt:`COMPILE_FEATURES`
  7. property such as ``$<TARGET_PROPERTY:foo,INTERFACE_COMPILE_FEATURES>``
  8. to require the features specified in the interface of ``foo``.
  9. Contents of ``INTERFACE_COMPILE_FEATURES`` may use "generator expressions"
  10. with the syntax ``$<...>``. See the :manual:`cmake-generator-expressions(7)`
  11. manual for available expressions. See the
  12. :manual:`cmake-compile-features(7)` manual for information on compile
  13. features.