mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
Utilities/Sphinx: Clarify names of variables listing post-sphinx commands
This commit is contained in:
@@ -68,7 +68,7 @@ if(SPHINX_HTML)
|
|||||||
|
|
||||||
# we provide the path to the produced html output in the console
|
# we provide the path to the produced html output in the console
|
||||||
# for tools that support URI protocol schemes
|
# for tools that support URI protocol schemes
|
||||||
set(html_extra_commands
|
set(html_post_commands
|
||||||
COMMAND ${CMAKE_COMMAND} -E echo "sphinx-build html: HTML documentation generated in file://${CMAKE_CURRENT_BINARY_DIR}/html/index.html"
|
COMMAND ${CMAKE_COMMAND} -E echo "sphinx-build html: HTML documentation generated in file://${CMAKE_CURRENT_BINARY_DIR}/html/index.html"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -94,7 +94,7 @@ if(SPHINX_INFO)
|
|||||||
|
|
||||||
# Sphinx texinfo builder supports .info, .txt, .html and .pdf output.
|
# Sphinx texinfo builder supports .info, .txt, .html and .pdf output.
|
||||||
# SPHINX_INFO controls the .info output.
|
# SPHINX_INFO controls the .info output.
|
||||||
set(texinfo_extra_commands
|
set(texinfo_post_commands
|
||||||
COMMAND ${MAKEINFO_EXECUTABLE} --no-split -o
|
COMMAND ${MAKEINFO_EXECUTABLE} --no-split -o
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/texinfo/cmake.info
|
${CMAKE_CURRENT_BINARY_DIR}/texinfo/cmake.info
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/texinfo/cmake.texi
|
${CMAKE_CURRENT_BINARY_DIR}/texinfo/cmake.texi
|
||||||
@@ -112,7 +112,7 @@ if(SPHINX_QTHELP)
|
|||||||
endif()
|
endif()
|
||||||
list(APPEND doc_formats qthelp)
|
list(APPEND doc_formats qthelp)
|
||||||
|
|
||||||
set(qthelp_extra_commands
|
set(qthelp_post_commands
|
||||||
# Workaround for assistant prior to
|
# Workaround for assistant prior to
|
||||||
# https://codereview.qt-project.org/#change,82250 in Qt 4.
|
# https://codereview.qt-project.org/#change,82250 in Qt 4.
|
||||||
COMMAND ${CMAKE_COMMAND} "-DCSS_DIR=${CMAKE_CURRENT_BINARY_DIR}/qthelp/_static"
|
COMMAND ${CMAKE_COMMAND} "-DCSS_DIR=${CMAKE_CURRENT_BINARY_DIR}/qthelp/_static"
|
||||||
@@ -148,7 +148,7 @@ if(CMake_SPHINX_CMAKE_ORG)
|
|||||||
list(APPEND doc_html_opts -A outdated=1)
|
list(APPEND doc_html_opts -A outdated=1)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
list(APPEND qthelp_extra_commands
|
list(APPEND qthelp_post_commands
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy
|
COMMAND ${CMAKE_COMMAND} -E copy
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/qthelp/CMake.qch"
|
"${CMAKE_CURRENT_BINARY_DIR}/qthelp/CMake.qch"
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/html/CMake.qch"
|
"${CMAKE_CURRENT_BINARY_DIR}/html/CMake.qch"
|
||||||
@@ -179,7 +179,7 @@ foreach(format ${doc_formats})
|
|||||||
${sphinx_flags}
|
${sphinx_flags}
|
||||||
${doc_${format}_opts}
|
${doc_${format}_opts}
|
||||||
> ${doc_format_log} # log stdout, pass stderr
|
> ${doc_format_log} # log stdout, pass stderr
|
||||||
${${format}_extra_commands}
|
${${format}_post_commands}
|
||||||
DEPENDS ${doc_format_last}
|
DEPENDS ${doc_format_last}
|
||||||
COMMENT "sphinx-build ${format}: see Utilities/Sphinx/${doc_format_log}"
|
COMMENT "sphinx-build ${format}: see Utilities/Sphinx/${doc_format_log}"
|
||||||
VERBATIM
|
VERBATIM
|
||||||
@@ -197,7 +197,7 @@ foreach(format ${doc_formats})
|
|||||||
${CMake_SOURCE_DIR}/Help
|
${CMake_SOURCE_DIR}/Help
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/${format}
|
${CMAKE_CURRENT_BINARY_DIR}/${format}
|
||||||
> ${doc_format_log} # log stdout, pass stderr
|
> ${doc_format_log} # log stdout, pass stderr
|
||||||
${${format}_extra_commands}
|
${${format}_post_commands}
|
||||||
DEPENDS ${doc_format_last}
|
DEPENDS ${doc_format_last}
|
||||||
COMMENT "sphinx-build ${format}: see Utilities/Sphinx/${doc_format_log}"
|
COMMENT "sphinx-build ${format}: see Utilities/Sphinx/${doc_format_log}"
|
||||||
VERBATIM
|
VERBATIM
|
||||||
|
|||||||
Reference in New Issue
Block a user