CMP0202.rst 1.2 KB

123456789101112131415161718192021222324252627282930
  1. CMP0202
  2. -------
  3. .. versionadded:: 4.2
  4. PDB file names always include their target's per-config POSTFIX.
  5. Program database files (``.pdb``) are always named with their target's
  6. :prop_tgt:`DEBUG_POSTFIX` or :prop_tgt:`<CONFIG>_POSTFIX` target property
  7. value.
  8. If the :prop_tgt:`PDB_NAME` target property is defined, CMake 4.1 and below
  9. exclude the target's per-config postfix from the program data base file name.
  10. Otherwise, the per-config postfix is included. This is inconsistent.
  11. CMake 4.2 and above prefer to always name the program database file with the
  12. per-config postfix regardless how the name is computed, i.e., using
  13. :prop_tgt:`OUTPUT_NAME`, or :prop_tgt:`PDB_NAME`, or neither. This policy
  14. provides compatibility with projects that have not been updated to account
  15. for the new behavior.
  16. The ``OLD`` behavior for this policy does not use the per-config postfix in
  17. ``.pdb`` file names if the :prop_tgt:`PDB_NAME` target property is defined.
  18. The ``NEW`` behavior always uses the per-config postfix in ``.pdb`` file
  19. names.
  20. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 4.2
  21. .. |WARNS_OR_DOES_NOT_WARN| replace:: does *not* warn
  22. .. include:: include/STANDARD_ADVICE.rst
  23. .. include:: include/DEPRECATED.rst