Skip to content

Commit

Permalink
Only enable doc target if breathe is available
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Mar 2, 2015
1 parent ce4d3e1 commit c3e845a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
if (NOT EXISTS ${FORMAT_SOURCE_DIR}/breathe/breathe)
message(STATUS "Target 'doc' disabled (requires breathe module)")
return ()
endif ()

foreach (program doxygen sphinx-build)
find_program(${program} ${program})
if (NOT ${program})
Expand Down

0 comments on commit c3e845a

Please sign in to comment.