From 37fb70591ebd06d8434eb7a650aeaae17b2380e2 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 27 Apr 2022 14:58:09 -0400 Subject: Utilities/Sphinx: Add variables listing pre-sphinx commands --- Utilities/Sphinx/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) 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} -- cgit v0.12