COMPILE_DEFINITIONS_CONFIG.rst 774 B

12345678910111213141516171819
  1. COMPILE_DEFINITIONS_<CONFIG>
  2. ----------------------------
  3. Ignored. See CMake Policy :policy:`CMP0043`.
  4. Per-configuration preprocessor definitions in a directory.
  5. This is the configuration-specific version of :prop_dir:`COMPILE_DEFINITIONS`
  6. where ``<CONFIG>`` is an upper-case name (ex. ``COMPILE_DEFINITIONS_DEBUG``).
  7. This property will be initialized in each directory by its value in
  8. the directory's parent.
  9. Contents of ``COMPILE_DEFINITIONS_<CONFIG>`` 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.
  13. Generator expressions should be preferred instead of setting this property.