add_custom_command: Properly recognize if sources depend on config
Without the changes in this merge-request CMake only uses the empty (""
) build configuration when adding build-events (POST_BUILD
, PRE_BUILD
, PRE_LINK
) to targets. This results in errors if the name of any of the sources used to create that target depends on the configuration.
Fixes: #21349 (closed)
Backport: release
Topic-rename: per-config-source-TARGET_FILE