CMAKE_VS_USE_DEBUG_LIBRARIES.rst 1.2 KB

1234567891011121314151617181920212223242526272829
  1. CMAKE_VS_USE_DEBUG_LIBRARIES
  2. ----------------------------
  3. .. versionadded:: 3.30
  4. .. |VS_USE_DEBUG_LIBRARIES| replace:: ``CMAKE_VS_USE_DEBUG_LIBRARIES``
  5. .. |MSVC_RUNTIME_LIBRARY| replace:: :variable:`CMAKE_MSVC_RUNTIME_LIBRARY`
  6. .. include:: ../prop_tgt/VS_USE_DEBUG_LIBRARIES-PURPOSE.txt
  7. Use :manual:`generator expressions <cmake-generator-expressions(7)>`
  8. for per-configuration specification. For example, the code:
  9. .. code-block:: cmake
  10. set(CMAKE_VS_USE_DEBUG_LIBRARIES "$<CONFIG:Debug,Custom>")
  11. indicates that all following targets consider their "Debug" and "Custom"
  12. configurations to be debug configurations, and their other configurations
  13. to be non-debug configurations.
  14. This variable is used to initialize the :prop_tgt:`VS_USE_DEBUG_LIBRARIES`
  15. property on all targets as they are created. It is also propagated by
  16. calls to the :command:`try_compile` command into its test project.
  17. If this variable is not set then the :prop_tgt:`VS_USE_DEBUG_LIBRARIES`
  18. property will not be set automatically. If that property is not set then
  19. CMake generates ``UseDebugLibraries`` using heuristics to determine which
  20. configurations are debug configurations. See policy :policy:`CMP0162`.