Skip to content

Commit 411342b

Browse files
committed
build(docs): replace target depends with file stamp depends
1 parent 76c601b commit 411342b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,17 @@ if(NOT RES EQUAL 0 )
1111
message(FATAL_ERROR "Failed to install Python dependencies:\n${ERR}")
1212
endif()
1313

14+
get_target_property(errors_docs_BINARY_DIR errors_docs BINARY_DIR)
15+
get_target_property(errors_format_docs_BINARY_DIR errors_format_docs BINARY_DIR)
16+
1417
add_custom_command(
1518
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/html/index.html
1619
COMMAND ${Python_EXECUTABLE} -m sphinx -b html ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/html -W --keep-going
1720
DEPENDS
1821
${CMAKE_CURRENT_SOURCE_DIR}/conf.py
1922
${CMAKE_CURRENT_SOURCE_DIR}/index.rst
23+
${errors_docs_BINARY_DIR}/errors_docs.stamp
24+
${errors_format_docs_BINARY_DIR}/errors_format_docs.stamp
2025
)
2126

2227
add_custom_target(docs ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/html/index.html)
23-
add_dependencies(docs errors_docs errors_format_docs)

0 commit comments

Comments
 (0)