INTERFACE_COMPILE_DEFINITIONS.rst 580 B

12345678910111213
  1. INTERFACE_COMPILE_DEFINITIONS
  2. -----------------------------
  3. List of public compile definitions for a library.
  4. Targets may populate this property to publish the compile definitions
  5. required to compile against the headers for the target. Consuming
  6. targets can add entries to their own COMPILE_DEFINITIONS property such
  7. as $<TARGET_PROPERTY:foo,INTERFACE_COMPILE_DEFINITIONS> to use the
  8. compile definitions specified in the interface of 'foo'.
  9. This property also supports generator expressions. See the
  10. :manual:`cmake-generator-expressions(7)` manual for available expressions.