TARGET_NAME_IF_EXISTS

This generator expression belongs to the Target Meta-Data family. See that section for related generator expressions.

Syntax

$<TARGET_NAME_IF_EXISTS:tgt>

Added in version 3.12.

The target name tgt if the target exists, an empty string otherwise.

Note that tgt is not added as a dependency of the target this expression is evaluated on.