diff options
author | Craig Scott <craig.scott@crascit.com> | 2022-07-05 01:00:44 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2022-07-05 01:08:56 (GMT) |
commit | 703900d166f703c047ca064a7b8328bb66410552 (patch) | |
tree | 4cf05f848d5941384e2387e7a69e456d0c1b0225 | |
parent | 2a336d855443d7db601bd79e80fce86726962cd2 (diff) | |
download | CMake-703900d166f703c047ca064a7b8328bb66410552.zip CMake-703900d166f703c047ca064a7b8328bb66410552.tar.gz CMake-703900d166f703c047ca064a7b8328bb66410552.tar.bz2 |
Help: Mention CMP0131 in LINK_LIBRARIES docs
-rw-r--r-- | Help/policy/CMP0131.rst | 2 | ||||
-rw-r--r-- | Help/prop_tgt/LINK_LIBRARIES.rst | 11 |
2 files changed, 8 insertions, 5 deletions
diff --git a/Help/policy/CMP0131.rst b/Help/policy/CMP0131.rst index e85b8ab..d5430e4 100644 --- a/Help/policy/CMP0131.rst +++ b/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` 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. This policy was introduced in CMake version 3.24. Use the diff --git a/Help/prop_tgt/LINK_LIBRARIES.rst b/Help/prop_tgt/LINK_LIBRARIES.rst index ae5334a..b5c1d89 100644 --- a/Help/prop_tgt/LINK_LIBRARIES.rst +++ b/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. 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 |