Back to Cmake

COMPILE_PDB_OUTPUT_DIRECTORY_<CONFIG>

Help/prop_tgt/COMPILE_PDB_OUTPUT_DIRECTORY_CONFIG.rst

4.3.21.1 KB
Original Source

COMPILE_PDB_OUTPUT_DIRECTORY_<CONFIG>

.. versionadded:: 3.1

Per-configuration output directory for the MS debug symbol .pdb file generated by the compiler while building source files.

This is a per-configuration version of :prop_tgt:COMPILE_PDB_OUTPUT_DIRECTORY, but multi-configuration generators (:ref:Visual Studio <Visual Studio Generators>, :generator:Xcode, :generator:Ninja Multi-Config) do NOT append a per-configuration subdirectory to the specified directory. This property is initialized by the value of the :variable:CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY_<CONFIG> variable if it is set when a target is created.

.. versionadded:: 3.12

Contents of COMPILE_PDB_OUTPUT_DIRECTORY_<CONFIG> may use :manual:generator expressions <cmake-generator-expressions(7)>.

If the :prop_tgt:PRECOMPILE_HEADERS_REUSE_FROM target is set, this property is ignored and the reusage target's value of this property is used instead.

.. |PDB_XXX| replace:: :prop_tgt:PDB_OUTPUT_DIRECTORY_<CONFIG> .. include:: include/COMPILE_PDB_NOTE.rst