This is an automated email from the ASF dual-hosted git repository.

masaori pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 26574c5741 Find dot cmd for docs build (#12610)
26574c5741 is described below

commit 26574c574118e97efc7bbca58cc14b77b843f51b
Author: Masaori Koshiba <[email protected]>
AuthorDate: Mon Oct 27 07:42:42 2025 +0900

    Find dot cmd for docs build (#12610)
---
 CMakeLists.txt     | 2 ++
 doc/CMakeLists.txt | 5 +++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index b88da08fa6..55181e373a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -574,6 +574,8 @@ if(ENABLE_DOCS)
     COMPONENTS Runtime
     REQUIRED
   )
+
+  find_program(GRAPHVIZ_DOT dot REQUIRED)
 endif()
 
 if(ENABLE_AUTEST)
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index 4a6c070d47..f407cb3034 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -57,6 +57,7 @@ set(UML_FILES
     uml/extras/config-data.plantuml
     uml/extras/txn_box_config_schema.plantuml
 )
+
 # unfortunately, sphinx can't look else for files than its source directory
 # so these files must be create in the source tree
 foreach(UML ${UML_FILES})
@@ -64,8 +65,8 @@ foreach(UML ${UML_FILES})
   list(APPEND SVG_FILES ${CMAKE_CURRENT_SOURCE_DIR}/uml/images/${uml_name}.svg)
   add_custom_command(
     OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/uml/images/${uml_name}.svg
-    COMMAND ${Java_JAVA_EXECUTABLE} -jar ${PLANTUML_JAR} -o 
${CMAKE_CURRENT_SOURCE_DIR}/uml/images -tsvg
-            ${CMAKE_CURRENT_SOURCE_DIR}/${UML}
+    COMMAND ${Java_JAVA_EXECUTABLE} -jar ${PLANTUML_JAR} -o 
${CMAKE_CURRENT_SOURCE_DIR}/uml/images -tsvg -graphvizdot
+            ${GRAPHVIZ_DOT} ${CMAKE_CURRENT_SOURCE_DIR}/${UML}
     DEPENDS ${UML}
     VERBATIM
   )

Reply via email to