Don't try to generate docs if doxyfile generation failed

pull/4/head
Stephen Spangler 2019-03-01 12:28:55 -05:00
parent ec13728acc
commit 7070368b52
1 changed files with 5 additions and 0 deletions

View File

@ -29,7 +29,12 @@ find_package(Doxygen)
if(DOXYGEN_FOUND)
set(DOXYGEN_OUT ${CMAKE_CURRENT_SOURCE_DIR}/generated/Doxyfile)
set(ICSNEO_DOCS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/docs)
if(NOT EXISTS "${DOXYGEN_OUT}")
set(DOXYGEN_FOUND FALSE)
endif()
endif()
if(DOXYGEN_FOUND)
message("Will build Doxygen based documentation")
add_custom_target(libicsneo_doxygen ALL