Spec-Zone.ru › CMake

DEBUG_CONFIGURATIONS

This property specifies which Build Configurations are for debugging.

The value must be a semicolon-separated list of build configuration names. Currently this property is used only by the target_link_libraries() command. Additional uses may be defined in the future.

This property must be set at the top level of the project and before the first target_link_libraries() command invocation. If any entry in the list does not match a valid configuration for the project, the behavior is undefined.

By default, this property is not set.

Examples

The following example adds a custom configuration to non-optimized debug configurations while preserving any existing ones. If the project uses the default Debug configuration, it should be included as well.

set_property(GLOBAL APPEND PROPERTY DEBUG_CONFIGURATIONS Debug CustomBuild)

See Also

  • The MAP_IMPORTED_CONFIG_<CONFIG> target property, which maps build configurations when linking to Imported Targets that have the IMPORTED_CONFIGURATIONS property set.

© 2000–2026 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/latest/prop_gbl/DEBUG_CONFIGURATIONS.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API