From 2dd0a139e5f6d162574bf38a80a1bfe38cd62d4d Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Wed, 27 Dec 2023 07:58:15 +0700 Subject: [PATCH] build(docs): add file stamp depends --- docs/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt index 0eb09b7..82a4ebb 100644 --- a/docs/CMakeLists.txt +++ b/docs/CMakeLists.txt @@ -11,12 +11,17 @@ if(NOT RES EQUAL 0 ) message(FATAL_ERROR "Failed to install Python dependencies:\n${ERR}") endif() +get_target_property(errors_docs_BINARY_DIR errors_docs BINARY_DIR) +get_target_property(errors_format_docs_BINARY_DIR errors_format_docs BINARY_DIR) + add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/html/index.html COMMAND ${Python_EXECUTABLE} -m sphinx -b html ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/html -W --keep-going DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/conf.py ${CMAKE_CURRENT_SOURCE_DIR}/index.rst + ${errors_docs_BINARY_DIR}/errors_docs.stamp + ${errors_format_docs_BINARY_DIR}/errors_format_docs.stamp ) add_custom_target(docs ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/html/index.html)