summaryrefslogtreecommitdiff
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-10-05 13:08:10 +0000
committerKitware Robot <kwrobot@kitware.com>2021-10-05 09:08:20 -0400
commit8888fa5cce63696ad79ed158c8212a9a44e9d922 (patch)
treeb7746258b01c26b5191326cc58614a4c4ef06df8 /Utilities
parentf66ad94935039fc398918703d03267e82fcbb343 (diff)
parent1d03aa841c38ea19ffdab08f762fa39d4134874c (diff)
downloadcmake-8888fa5cce63696ad79ed158c8212a9a44e9d922.tar.gz
Merge topic 'indexurl'
1d03aa841c Utilities/Sphinx: Print path to index.html in build output Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6530
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/Sphinx/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Utilities/Sphinx/CMakeLists.txt b/Utilities/Sphinx/CMakeLists.txt
index a71dfcdfaa..c8a970dcaf 100644
--- a/Utilities/Sphinx/CMakeLists.txt
+++ b/Utilities/Sphinx/CMakeLists.txt
@@ -58,6 +58,13 @@ configure_file(conf.py.in conf.py @ONLY)
set(doc_formats "")
if(SPHINX_HTML)
list(APPEND doc_formats html)
+
+ # we provide the path to the produced html output in the console
+ # for tools that support URI protocol schemes
+ set(html_extra_commands
+ COMMAND ${CMAKE_COMMAND} -E echo "sphinx-build html: HTML documentation generated in file://${CMAKE_CURRENT_BINARY_DIR}/html/index.html"
+ )
+
endif()
if(SPHINX_MAN)
list(APPEND doc_formats man)