Skip to content

add_custom_command: Properly recognize if sources depend on config

Deniz Bahadir requested to merge dbahadir/cmake:fix_21349 into master

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

Edited by Brad King

Merge request reports