summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-11-17 20:34:55 (GMT)
committerBrad King <brad.king@kitware.com>2014-11-17 20:37:31 (GMT)
commit5cda220548b82010b9f2fc9f177e808b6151a162 (patch)
tree59e9cdf6cff4d8b627faa1a66f5bc53b4813bf22
parent7ca9a459eb51ab110680d8221ddefeb0ffc6e95f (diff)
downloadCMake-5cda220548b82010b9f2fc9f177e808b6151a162.zip
CMake-5cda220548b82010b9f2fc9f177e808b6151a162.tar.gz
CMake-5cda220548b82010b9f2fc9f177e808b6151a162.tar.bz2
Utilities/Sphinx: Add missing call to note_explicit_target
Sphinx calls document.note_explicit_target with any nodes.target() it creates. Add such a call when we create a document target in CMakeTransform.
-rw-r--r--Utilities/Sphinx/cmake.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Utilities/Sphinx/cmake.py b/Utilities/Sphinx/cmake.py
index ec39596..e20679a 100644
--- a/Utilities/Sphinx/cmake.py
+++ b/Utilities/Sphinx/cmake.py
@@ -203,6 +203,7 @@ class CMakeTransform(Transform):
# Insert the object link target.
targetid = '%s:%s' % (objtype, title)
targetnode = nodes.target('', '', ids=[targetid])
+ self.document.note_explicit_target(targetnode)
self.document.insert(0, targetnode)
# Insert the object index entry.
indexnode = addnodes.index()