Skip to content

Commit

Permalink
Refs #11054 Find dot with CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Jeffery committed Feb 11, 2015
1 parent 4553d74 commit b586a4c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Code/Mantid/docs/CMakeLists.txt
Expand Up @@ -3,6 +3,9 @@
###############################################################################
find_package ( Sphinx 1.2 )

#Needed to generate doc diagrams
find_program ( DOT_EXECUTABLE NAMES dot DOC "Graphviz Dot tool for rendering diagrams" )

if ( SPHINX_FOUND )
# run python to see if the theme is installed
execute_process ( COMMAND ${PYTHON_EXECUTABLE} -c "import sphinx_bootstrap_theme"
Expand Down Expand Up @@ -39,7 +42,7 @@ if ( SPHINX_FOUND )

#Generate diagrams from .dot files
add_custom_target ( ${TARGET_PREFIX}-diagrams
COMMAND ${PYTHON_EXECUTABLE} ${DIAGRAMS_SCRIPT} ${DIAGRAMS_OUT_DIR} ${DIAGRAMS_SRC}
COMMAND ${PYTHON_EXECUTABLE} ${DIAGRAMS_SCRIPT} -x ${DOT_EXECUTABLE} ${DIAGRAMS_OUT_DIR} ${DIAGRAMS_SRC}
SOURCES ${DIAGRAMS_SCRIPT} ${DIAGRAMS_SRC}
COMMENT "Generating .dot diagrams")

Expand Down

0 comments on commit b586a4c

Please sign in to comment.