get_interface_link_libraries
get_interface_link_libraries(OUTVAR TARGET)
Read a target's INTERFACE_LINK_LIBRARIES property with CMake's internal cross-directory
markers stripped out and duplicates removed.
When target_link_libraries() is called on a target from a different directory than the one
it was created in, CMake wraps the linked entry as ::@(directory-id);<lib>;::@ so generators
can resolve the name in the caller's scope (see
https://cmake.org/cmake/help/latest/prop_tgt/INTERFACE_LINK_LIBRARIES.html). Since IPs are
routinely linked across directories in this codebase, reading the raw property can surface these
marker tokens as literal (bogus) list entries; this function filters them out so callers don't
each have to repeat the workaround.
Parameters
| Name | Type | Description |
|---|---|---|
OUTVAR | string | Variable that receives the cleaned list of linked libraries. |
TARGET | string | The target whose INTERFACE_LINK_LIBRARIES should be read. |