Auto dependency behavior of $<TARGET_FILE_NAME> is ambiguous
Prior to CMake 3.19, many generator expressions that mentioned targets directly as command arguments in
add_custom_target() would result in a dependency on that target being automatically added. This behavior was relaxed in !5127 (merged), subject to policy CMP0112. The documentation updates in that MR seem to have left out making the behavior for
$<TARGET_FILE_NAME:...> clear. For all other
$<TARGET_xxx:...> expressions, one can work out the behavior from the documentation of CMP0112, the
add_custom_...() commands and the Target-Dependent Queries section of the cmake-generator-expressions manual. I suspect either
$<TARGET_FILE_NAME:...> was mistakenly omitted from the CMP0112 docs or a note should be added for it in the cmake-generator-expressions manual like the others.