From 639eee1a0cc9d51e6f6c467453b121667319e003 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 11 Feb 2025 09:23:06 -0500 Subject: Help: Call out target_link_libraries legacy signatures earlier --- Help/command/target_link_libraries.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Help/command/target_link_libraries.rst b/Help/command/target_link_libraries.rst index 064e96f..4376e93 100644 --- a/Help/command/target_link_libraries.rst +++ b/Help/command/target_link_libraries.rst @@ -191,6 +191,9 @@ exclusively by this signature private. Libraries for a Target and/or its Dependents (Legacy) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +This signature is for compatibility only. Prefer the ``PUBLIC`` or +``PRIVATE`` keywords instead. + .. code-block:: cmake target_link_libraries( @@ -200,9 +203,6 @@ Libraries for a Target and/or its Dependents (Legacy) The ``LINK_PUBLIC`` and ``LINK_PRIVATE`` modes can be used to specify both the link dependencies and the link interface in one command. -This signature is for compatibility only. Prefer the ``PUBLIC`` or -``PRIVATE`` keywords instead. - Libraries and targets following ``LINK_PUBLIC`` are linked to, and are made part of the :prop_tgt:`INTERFACE_LINK_LIBRARIES`. If policy :policy:`CMP0022` is not ``NEW``, they are also made part of the @@ -213,6 +213,9 @@ made part of the :prop_tgt:`INTERFACE_LINK_LIBRARIES`. If policy Libraries for Dependents Only (Legacy) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +This signature is for compatibility only. Prefer the ``INTERFACE`` mode +instead. + .. code-block:: cmake target_link_libraries( LINK_INTERFACE_LIBRARIES ...) @@ -223,9 +226,6 @@ for linking. If policy :policy:`CMP0022` is not ``NEW``, then this mode also appends libraries to the :prop_tgt:`LINK_INTERFACE_LIBRARIES` and its per-configuration equivalent. -This signature is for compatibility only. Prefer the ``INTERFACE`` mode -instead. - Libraries specified as ``debug`` are wrapped in a generator expression to correspond to debug builds. If policy :policy:`CMP0022` is not ``NEW``, the libraries are also appended to the -- cgit v0.12