TARGET_IMPORT_FILE

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

Syntax

$<TARGET_IMPORT_FILE:tgt>

Added in version 3.27.

Full path to the linker import file. On DLL platforms, it would be the .lib file. For executables on AIX, and for shared libraries on macOS, it could be, respectively, the .imp or .tbd import file, depending on the value of the ENABLE_EXPORTS property.

This expands to an empty string when there is no import file associated with the target.