Merge topic 'per-config-source-TARGET_FILE' into release-3.19

cd33bfcad5 add_custom_command: Properly recognize if sources depend on config

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5410