TARGET_LINKER_FILE¶
This generator expression belongs to the Target Artifacts family. See that section for related generator expressions.
Syntax¶
$<TARGET_LINKER_FILE:tgt>
File used when linking to the tgt target. This will usually be the library
that tgt represents (.a, .lib, .so), but for a shared library on
DLL platforms, it would be the .lib import library associated with the DLL.
Added in version 3.27: On macOS, it could be the .tbd import file associated with the shared
library, depending on the value of the ENABLE_EXPORTS property.
This generator expression is equivalent to
$<TARGET_LINKER_LIBRARY_FILE> or $<TARGET_LINKER_IMPORT_FILE>
generator expressions, depending on the characteristics of the target and the
platform.