summaryrefslogtreecommitdiff
path: root/Utilities/Sphinx/create_identifiers.py
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-01-15 14:01:53 -0500
committerBrad King <brad.king@kitware.com>2021-01-18 12:35:41 -0500
commit7d498d6b436638f5d85a0e97d43d51603d79205c (patch)
tree5e6a7174c41689811bb2b0c41d85207daee48a57 /Utilities/Sphinx/create_identifiers.py
parentcc1f53351c52d03aecc47f8074ab1290cf7fb1a5 (diff)
downloadcmake-7d498d6b436638f5d85a0e97d43d51603d79205c.tar.gz
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-xUtilities/Sphinx/create_identifiers.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Utilities/Sphinx/create_identifiers.py b/Utilities/Sphinx/create_identifiers.py
index e35f127701..0ff39a0c2a 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"),