CMP0202 — CMake 4.4.3-dirty Documentation

# CMP0202

Added in version 4.2.

PDB file names always include their target's per-config POSTFIX.

Program database files (`.pdb`) are always named with their target's `DEBUG_POSTFIX` or `<CONFIG>_POSTFIX` target property value.

If the `PDB_NAME` target property is defined, CMake 4.1 and below exclude the target's per-config postfix from the program data base file name. Otherwise, the per-config postfix is included. This is inconsistent. CMake 4.2 and above prefer to always name the program database file with the per-config postfix regardless how the name is computed, i.e., using `OUTPUT_NAME`, or `PDB_NAME`, or neither. This policy provides compatibility with projects that have not been updated to account for the new behavior.

The `OLD` behavior for this policy does not use the per-config postfix in `.pdb` file names if the `PDB_NAME` target property is defined. The `NEW` behavior always uses the per-config postfix in `.pdb` file names.

This policy was introduced in CMake version 4.2. It may be set by `cmake_policy()` or `cmake_minimum_required()`. If it is not set, CMake does not warn, and uses `OLD` behavior.

Note

The `OLD` behavior of a policy is deprecated by definition and may be removed in a future version of CMake.