Skip to content

Commit

Permalink
Merge pull request equinor#1278 from pgdr/graphiz-lookup
Browse files Browse the repository at this point in the history
Checking for graphviz (dot) before enabling dot
  • Loading branch information
Pål Grønås Drange authored Oct 22, 2016
2 parents ae7fb99 + a1e4757 commit 52435d6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions docs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ endif()

find_package(Doxygen)
if (DOXYGEN_FOUND)
message(STATUS "Creating doxygen target")
if (DOXYGEN_DOT_FOUND)
message(STATUS "Found graphviz, will run doxygen with graphics")
set( DOXYGEN_HAVE_DOT "YES" )
else()
message(STATUS "Graphviz not found, disabling dot")
set( DOXYGEN_HAVE_DOT "NO" )
endif()

configure_file(doxygen.cfg.in ${PROJECT_BINARY_DIR}/doxygen.cfg)
add_custom_target(doxy
COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/doxygen.cfg
Expand Down
2 changes: 1 addition & 1 deletion docs/doxygen.cfg.in
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ INPUT = ${PROJECT_SOURCE_DIR}/libanalysis ${PROJECT_SOURCE_DIR}/libconfig ${PROJ
RECURSIVE = YES
EXCLUDE_PATTERNS = */test/* */build/* */test-data/* */docs/* */python*/

HAVE_DOT = YES
HAVE_DOT = ${DOXYGEN_HAVE_DOT}
DOT_GRAPH_MAX_NODES = 1000
GENERATE_HTML = YES
CLASS_DIAGRAMS = YES
Expand Down

0 comments on commit 52435d6

Please sign in to comment.