summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-04-27 18:58:09 (GMT)
committerBrad King <brad.king@kitware.com>2022-04-27 19:22:31 (GMT)
commit37fb70591ebd06d8434eb7a650aeaae17b2380e2 (patch)
treecae2b554c31ba8847f34dc6f2ef64938d1d26242 /Utilities
parenteb7d913a219627dbaae178c1b487f01990cc0572 (diff)
downloadCMake-37fb70591ebd06d8434eb7a650aeaae17b2380e2.zip
CMake-37fb70591ebd06d8434eb7a650aeaae17b2380e2.tar.gz
CMake-37fb70591ebd06d8434eb7a650aeaae17b2380e2.tar.bz2
Utilities/Sphinx: Add variables listing pre-sphinx commands
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/Sphinx/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/Utilities/Sphinx/CMakeLists.txt b/Utilities/Sphinx/CMakeLists.txt
index 8265ce4..f77bab4 100644
--- a/Utilities/Sphinx/CMakeLists.txt
+++ b/Utilities/Sphinx/CMakeLists.txt
@@ -170,6 +170,7 @@ foreach(format ${doc_formats})
# arguments in peculiar order
add_custom_command(
OUTPUT ${doc_format_output}
+ ${${format}_pre_commands}
COMMAND ${SPHINX_EXECUTABLE}
-M ${format}
${CMake_SOURCE_DIR}/Help
@@ -188,6 +189,7 @@ foreach(format ${doc_formats})
# other formats use standard builder (-b) mode
add_custom_command(
OUTPUT ${doc_format_output}
+ ${${format}_pre_commands}
COMMAND ${SPHINX_EXECUTABLE}
-c ${CMAKE_CURRENT_BINARY_DIR}
-d ${CMAKE_CURRENT_BINARY_DIR}/${doctrees}