DEBUG_CONFIGURATIONS.rst 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. DEBUG_CONFIGURATIONS
  2. --------------------
  3. This property specifies which :ref:`Build Configurations` are for debugging.
  4. The value must be a :ref:`semicolon-separated list <CMake Language Lists>` of
  5. build configuration names.
  6. Currently this property is used only by the :command:`target_link_libraries`
  7. command. Additional uses may be defined in the future.
  8. This property must be set at the top level of the project and before
  9. the first :command:`target_link_libraries` command invocation. If any entry in
  10. the list does not match a valid configuration for the project, the
  11. behavior is undefined.
  12. By default, this property is **not set**.
  13. Examples
  14. ^^^^^^^^
  15. The following example adds a custom configuration to non-optimized debug
  16. configurations while preserving any existing ones. If the project uses the
  17. default ``Debug`` configuration, it should be included as well.
  18. .. code-block:: cmake
  19. set_property(GLOBAL APPEND PROPERTY DEBUG_CONFIGURATIONS Debug CustomBuild)
  20. See Also
  21. ^^^^^^^^
  22. * The :prop_tgt:`MAP_IMPORTED_CONFIG_<CONFIG>` target property, which maps build
  23. configurations when linking to :ref:`Imported Targets` that have the
  24. :prop_tgt:`IMPORTED_CONFIGURATIONS` property set.