summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-10-05 13:08:10 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-10-05 13:08:20 (GMT)
commit8888fa5cce63696ad79ed158c8212a9a44e9d922 (patch)
treeb7746258b01c26b5191326cc58614a4c4ef06df8 /Utilities
parentf66ad94935039fc398918703d03267e82fcbb343 (diff)
parent1d03aa841c38ea19ffdab08f762fa39d4134874c (diff)
downloadCMake-8888fa5cce63696ad79ed158c8212a9a44e9d922.zip
CMake-8888fa5cce63696ad79ed158c8212a9a44e9d922.tar.gz
CMake-8888fa5cce63696ad79ed158c8212a9a44e9d922.tar.bz2
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 a71dfcd..c8a970d 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)