diff options
author | Brad King <brad.king@kitware.com> | 2021-12-20 15:03:17 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-12-20 17:14:07 (GMT) |
commit | 37af6c33116af75a9538861268edab0ddc202d79 (patch) | |
tree | 8d1ec64b38370df7abf070af5cebb34638cf6ae4 /Help/release/dev | |
parent | 5134f099a32e2eb0d557ad86dabd8b811709c94d (diff) | |
download | CMake-37af6c33116af75a9538861268edab0ddc202d79.zip CMake-37af6c33116af75a9538861268edab0ddc202d79.tar.gz CMake-37af6c33116af75a9538861268edab0ddc202d79.tar.bz2 |
target_link_libraries: Optionally require only target names
Optionally verify that items in `LINK_LIBRARIES` and
`INTERFACE_LINK_LIBRARIES` that can be target names are actually target
names. Add a `LINK_LIBRARIES_ONLY_TARGETS` target property and
corresponding `CMAKE_LINK_LIBRARIES_ONLY_TARGETS` variable to enable
this new check.
Fixes: #22858
Diffstat (limited to 'Help/release/dev')
-rw-r--r-- | Help/release/dev/link-only-targets.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Help/release/dev/link-only-targets.rst b/Help/release/dev/link-only-targets.rst new file mode 100644 index 0000000..7901a25 --- /dev/null +++ b/Help/release/dev/link-only-targets.rst @@ -0,0 +1,7 @@ +link-only-targets +----------------- + +* The :variable:`CMAKE_LINK_LIBRARIES_ONLY_TARGETS` variable and + corresponding :prop_tgt:`LINK_LIBRARIES_ONLY_TARGETS` target + property were added to optionally require that all link items + that can be target names are actually names of existing targets. |