INTERFACE_COMPILE_OPTIONS.rst 718 B

123456789101112131415
  1. INTERFACE_COMPILE_OPTIONS
  2. -------------------------
  3. List of interface options to pass to the compiler.
  4. Targets may populate this property to publish the compile options
  5. required to compile against the headers for the target. Consuming
  6. targets can add entries to their own :prop_tgt:`COMPILE_OPTIONS` property
  7. such as ``$<TARGET_PROPERTY:foo,INTERFACE_COMPILE_OPTIONS>`` to use the
  8. compile options specified in the interface of ``foo``.
  9. Contents of ``INTERFACE_COMPILE_OPTIONS`` may use "generator expressions"
  10. with the syntax ``$<...>``. See the :manual:`cmake-generator-expressions(7)`
  11. manual for available expressions. See the :manual:`cmake-buildsystem(7)`
  12. manual for more on defining buildsystem properties.