COMPILE_DEFINITIONS_CONFIG.rst 727 B

1234567891011121314151617
  1. COMPILE_DEFINITIONS_<CONFIG>
  2. ----------------------------
  3. Per-configuration preprocessor definitions in a directory.
  4. This is the configuration-specific version of :prop_dir:`COMPILE_DEFINITIONS`
  5. where ``<CONFIG>`` is an upper-case name (ex. ``COMPILE_DEFINITIONS_DEBUG``).
  6. This property will be initialized in each directory by its value in
  7. the directory's parent.
  8. Contents of ``COMPILE_DEFINITIONS_<CONFIG>`` may use "generator expressions"
  9. with the syntax ``$<...>``. See the :manual:`cmake-generator-expressions(7)`
  10. manual for available expressions. See the :manual:`cmake-buildsystem(7)`
  11. manual for more on defining buildsystem properties.
  12. Generator expressions should be preferred instead of setting this property.