diff options
author | Brad King <brad.king@kitware.com> | 2021-02-05 18:14:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-02-05 21:05:25 (GMT) |
commit | 5dd356cefcc128c3be8d908a4c89140865467ee2 (patch) | |
tree | 7c039cdb55ea908fbb806662d1a1668c799fcc12 /Help/policy | |
parent | acb33d0904121f10891cb3aa0622b11d4e527304 (diff) | |
download | CMake-5dd356cefcc128c3be8d908a4c89140865467ee2.zip CMake-5dd356cefcc128c3be8d908a4c89140865467ee2.tar.gz CMake-5dd356cefcc128c3be8d908a4c89140865467ee2.tar.bz2 |
Help: Convert some genex names to explicit cross-references
Since commit c2dc7e0f53 (Help: Convert genex documentation to sphinx
domain objects, 2021-01-15) we can use `:genex:` cross-references to
link to named generator expressions. Update some places to do this.
This is meant to demonstrate the capability, not as a comprehensive
sweep.
Diffstat (limited to 'Help/policy')
-rw-r--r-- | Help/policy/CMP0026.rst | 4 | ||||
-rw-r--r-- | Help/policy/CMP0051.rst | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Help/policy/CMP0026.rst b/Help/policy/CMP0026.rst index 3401d4a..e08fd54 100644 --- a/Help/policy/CMP0026.rst +++ b/Help/policy/CMP0026.rst @@ -9,12 +9,12 @@ determine the eventual location of build targets. This relies on the assumption that all necessary information is available at configure-time to determine the final location and filename of the target. However, this property is not fully determined until later at -generate-time. At generate time, the ``$<TARGET_FILE>`` generator +generate-time. At generate time, the :genex:`$<TARGET_FILE>` generator expression can be used to determine the eventual :prop_tgt:`LOCATION` of a target output. Code which reads the :prop_tgt:`LOCATION` target property can be ported to -use the ``$<TARGET_FILE>`` generator expression together with the +use the :genex:`$<TARGET_FILE>` generator expression together with the :command:`file(GENERATE)` subcommand to generate a file containing the target location. diff --git a/Help/policy/CMP0051.rst b/Help/policy/CMP0051.rst index 053bc97..3558909 100644 --- a/Help/policy/CMP0051.rst +++ b/Help/policy/CMP0051.rst @@ -3,7 +3,7 @@ CMP0051 .. versionadded:: 3.1 -List TARGET_OBJECTS in SOURCES target property. +List :genex:`TARGET_OBJECTS` in SOURCES target property. CMake 3.0 and lower did not include the ``TARGET_OBJECTS`` :manual:`generator expression <cmake-generator-expressions(7)>` when |