diff options
author | Brad King <brad.king@kitware.com> | 2021-01-15 19:01:53 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-01-18 17:35:41 (GMT) |
commit | 7d498d6b436638f5d85a0e97d43d51603d79205c (patch) | |
tree | 5e6a7174c41689811bb2b0c41d85207daee48a57 /Utilities/Sphinx/create_identifiers.py | |
parent | cc1f53351c52d03aecc47f8074ab1290cf7fb1a5 (diff) | |
download | CMake-7d498d6b436638f5d85a0e97d43d51603d79205c.zip CMake-7d498d6b436638f5d85a0e97d43d51603d79205c.tar.gz CMake-7d498d6b436638f5d85a0e97d43d51603d79205c.tar.bz2 |
Utilities/Sphinx: Add role and directive for 'genex' in CMake domain
This enables cross-reference syntax for CMake generator expressions:
:genex:`SOME_GENEX`
:genex:`$<SOME_GENEX>`
:genex:`$<SOME_GENEX:...>`
and definition of CMake generator expressions via a directive:
.. genex:: SOME_GENEX
.. genex:: $<SOME_GENEX>
.. genex:: $<SOME_GENEX:...>
It also adds generator expressions defined by the directive and by
`Help/genex/SOME_GENEX.rst` documents to the index.
Diffstat (limited to 'Utilities/Sphinx/create_identifiers.py')
-rwxr-xr-x | Utilities/Sphinx/create_identifiers.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Utilities/Sphinx/create_identifiers.py b/Utilities/Sphinx/create_identifiers.py index e35f127..0ff39a0 100755 --- a/Utilities/Sphinx/create_identifiers.py +++ b/Utilities/Sphinx/create_identifiers.py @@ -25,6 +25,7 @@ for line in lines: ("envvar", "envvar"), ("variable", "variable"), ("generator", "generator"), + ("genex", "genex"), ("guide", "guide"), ("target property", "prop_tgt"), ("test property", "prop_test"), |