Skip to content

add_custom_command: Target-dependent generator expression support

Raul Tambre requested to merge tambre/cmake:command_target into master

OUTPUT variant with a TARGET given to allow resolving target-based generator expressions wouldn't work because OUTPUT is resolved before generator targets are created, i.e. FindGeneratorTargetToUse() returns nullptr. This is a known limitation, see #21364.

Implements #21336 (closed).

Edited by Raul Tambre

Merge request reports