Bläddra i källkod

Merge topic 'doc-CMP0131'

703900d166 Help: Mention CMP0131 in LINK_LIBRARIES docs

Acked-by: Kitware Robot <[email protected]>
Merge-request: !7444
Brad King 3 år sedan
förälder
incheckning
395ebfffd4
2 ändrade filer med 8 tillägg och 5 borttagningar
  1. 1 1
      Help/policy/CMP0131.rst
  2. 7 4
      Help/prop_tgt/LINK_LIBRARIES.rst

+ 1 - 1
Help/policy/CMP0131.rst

@@ -20,7 +20,7 @@ account for this change.
 
 
 The ``OLD`` behavior for this policy is to use :prop_tgt:`LINK_LIBRARIES`
 The ``OLD`` behavior for this policy is to use :prop_tgt:`LINK_LIBRARIES`
 content guarded by :genex:`$<LINK_ONLY:...>` even for non-linking
 content guarded by :genex:`$<LINK_ONLY:...>` even for non-linking
-usage requirements.  The ``NEW`` behavior for this policy is to to use
+usage requirements.  The ``NEW`` behavior for this policy is to use
 the guarded content only for link dependencies.
 the guarded content only for link dependencies.
 
 
 This policy was introduced in CMake version 3.24.  Use the
 This policy was introduced in CMake version 3.24.  Use the

+ 7 - 4
Help/prop_tgt/LINK_LIBRARIES.rst

@@ -14,10 +14,13 @@ followed by indirect dependencies from the transitive closure of the
 direct dependencies' :prop_tgt:`INTERFACE_LINK_LIBRARIES` properties.
 direct dependencies' :prop_tgt:`INTERFACE_LINK_LIBRARIES` properties.
 See policy :policy:`CMP0022`.
 See policy :policy:`CMP0022`.
 
 
-Contents of ``LINK_LIBRARIES`` may use "generator expressions" with the
-syntax ``$<...>``.  See the :manual:`cmake-generator-expressions(7)` manual
-for available expressions.  See the :manual:`cmake-buildsystem(7)` manual
-for more on defining buildsystem properties.
+Contents of ``LINK_LIBRARIES`` may use
+:manual:`generator expressions <cmake-generator-expressions(7)>` with the
+syntax ``$<...>``.  Policy :policy:`CMP0131` affects the behavior of the
+:genex:`LINK_ONLY` generator expression for this property.
+
+See the :manual:`cmake-buildsystem(7)` manual for more on defining
+buildsystem properties.
 
 
 .. include:: LINK_LIBRARIES_INDIRECTION.txt
 .. include:: LINK_LIBRARIES_INDIRECTION.txt