target_link_libraries: Fix out-of-dir calls with debug/optimized keywords
In !2370 (merged) we added use of <...>
to encode a directory id, but the closing >
can incorrectly terminate a surrounding generator expression early. Encode the directory id using (...)
instead.
Also add FIXME comments for another bug discovered while investigating this.
Fixes: #20202 (closed)
Issue: #20204 (closed)