target_link_libraries: out-of-dir calls broken for lists in genex
Using
target_link_libraries(targetInOtherDir PUBLIC "$<1:a;b>")
will look up b
in the calling scope but may look up a
in the LHS target's scope. This is because the ::@(directory-id)
syntax we use internally to encode the directory id in the LINK_LIBRARIES
target property string is appended, but after expansion of generator expressions we will get a;b::@(...)
and the directory id will be attached only to the last entry.