Only enable doc target if breathe is available

This commit is contained in:
Victor Zverovich 2015-03-01 16:35:29 -08:00
parent ce4d3e175c
commit c3e845ab7e

View File

@ -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})