diff options
author | Brad King <brad.king@kitware.com> | 2020-01-10 15:50:40 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-01-10 16:40:34 (GMT) |
commit | 09721ca0787e3753e6b294c9bd57ca39ef91c230 (patch) | |
tree | 6fd39e5f3d6ecc9b9a047d35828e23aab8b2c897 /Tests/CMakeCommands/target_link_libraries/SubDirB | |
parent | c40229968cec39590ccdf54402625c83b44581a0 (diff) | |
download | CMake-09721ca0787e3753e6b294c9bd57ca39ef91c230.zip CMake-09721ca0787e3753e6b294c9bd57ca39ef91c230.tar.gz CMake-09721ca0787e3753e6b294c9bd57ca39ef91c230.tar.bz2 |
target_link_libraries: Fix out-of-dir calls with debug/optimized keywords
In commit a1ad0a699b (target_link_libraries: Allow use with targets in
other directories, 2018-09-07, v3.13.0-rc1~94^2) 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.
Fixes: #20202
Diffstat (limited to 'Tests/CMakeCommands/target_link_libraries/SubDirB')
-rw-r--r-- | Tests/CMakeCommands/target_link_libraries/SubDirB/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/CMakeCommands/target_link_libraries/SubDirB/CMakeLists.txt b/Tests/CMakeCommands/target_link_libraries/SubDirB/CMakeLists.txt index 10f926a..b430834 100644 --- a/Tests/CMakeCommands/target_link_libraries/SubDirB/CMakeLists.txt +++ b/Tests/CMakeCommands/target_link_libraries/SubDirB/CMakeLists.txt @@ -2,7 +2,7 @@ add_executable(SubDirB SubDirB.c) # Link to a target imported in this directory that would not normally # be visible to the directory in which TopDir is defined. -target_link_libraries(TopDir PUBLIC SameNameImported) +target_link_libraries(TopDir PUBLIC debug SameNameImported optimized SameNameImported) #FIXME: Demonstrate known issue #20204. #target_link_libraries(TopDir PUBLIC "$<1:SameNameImported;SameNameImported>") |