COMPILE_DEFINITIONS_CONFIG.rst 631 B

1234567891011121314
  1. COMPILE_DEFINITIONS_<CONFIG>
  2. ----------------------------
  3. Per-configuration preprocessor definitions on a target.
  4. This is the configuration-specific version of :prop_tgt:`COMPILE_DEFINITIONS`
  5. where ``<CONFIG>`` is an upper-case name (ex. ``COMPILE_DEFINITIONS_DEBUG``).
  6. Contents of ``COMPILE_DEFINITIONS_<CONFIG>`` may use "generator expressions"
  7. with the syntax ``$<...>``. See the :manual:`cmake-generator-expressions(7)`
  8. manual for available expressions. See the :manual:`cmake-buildsystem(7)`
  9. manual for more on defining buildsystem properties.
  10. Generator expressions should be preferred instead of setting this property.