TARGET_FILE_BASE_NAME

This generator expression belongs to the Target Artifacts family. See that section for related generator expressions.

Syntax

$<TARGET_FILE_BASE_NAME:tgt[,POSTFIX:(INCLUDE|EXCLUDE)]>

Added in version 3.15.

Added in version 4.2: The POSTFIX option can be used to control the inclusion or not of the <CONFIG>_POSTFIX target property value as part of the base name. The default is POSTFIX:INCLUDE.

Base name of tgt, i.e. $<TARGET_FILE_NAME:tgt> without prefix and suffix and, optionally, postfix. For example, if the tgt filename is libbase_postfix.so, the base name is:

  • base_postfix for $<TARGET_FILE_BASE_NAME:tgt> or $<TARGET_FILE_BASE_NAME:tgt,POSTFIX:INCLUDE>.

  • base for $<TARGET_FILE_BASE_NAME:tgt,POSTFIX:EXCLUDE>.

See also the OUTPUT_NAME, ARCHIVE_OUTPUT_NAME, LIBRARY_OUTPUT_NAME and RUNTIME_OUTPUT_NAME target properties, their configuration-specific variants OUTPUT_NAME_<CONFIG>, ARCHIVE_OUTPUT_NAME_<CONFIG>, LIBRARY_OUTPUT_NAME_<CONFIG> and RUNTIME_OUTPUT_NAME_<CONFIG>, and the <CONFIG>_POSTFIX and DEBUG_POSTFIX target properties.

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