Skip to content

target_link_libraries: Fix out-of-dir calls with debug/optimized keywords

Brad King requested to merge brad.king/cmake:out-of-dir-link-keyword into master

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)

Merge request reports