Skip to content

Commit 26574c5

Browse files
authored
Find dot cmd for docs build (#12610)
1 parent 708f943 commit 26574c5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,8 @@ if(ENABLE_DOCS)
574574
COMPONENTS Runtime
575575
REQUIRED
576576
)
577+
578+
find_program(GRAPHVIZ_DOT dot REQUIRED)
577579
endif()
578580

579581
if(ENABLE_AUTEST)

doc/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,16 @@ set(UML_FILES
5757
uml/extras/config-data.plantuml
5858
uml/extras/txn_box_config_schema.plantuml
5959
)
60+
6061
# unfortunately, sphinx can't look else for files than its source directory
6162
# so these files must be create in the source tree
6263
foreach(UML ${UML_FILES})
6364
cmake_path(GET UML STEM uml_name)
6465
list(APPEND SVG_FILES ${CMAKE_CURRENT_SOURCE_DIR}/uml/images/${uml_name}.svg)
6566
add_custom_command(
6667
OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/uml/images/${uml_name}.svg
67-
COMMAND ${Java_JAVA_EXECUTABLE} -jar ${PLANTUML_JAR} -o ${CMAKE_CURRENT_SOURCE_DIR}/uml/images -tsvg
68-
${CMAKE_CURRENT_SOURCE_DIR}/${UML}
68+
COMMAND ${Java_JAVA_EXECUTABLE} -jar ${PLANTUML_JAR} -o ${CMAKE_CURRENT_SOURCE_DIR}/uml/images -tsvg -graphvizdot
69+
${GRAPHVIZ_DOT} ${CMAKE_CURRENT_SOURCE_DIR}/${UML}
6970
DEPENDS ${UML}
7071
VERBATIM
7172
)

0 commit comments

Comments
 (0)