Only install doxy docs if they were generated

This commit is contained in:
sangelovic
2019-04-12 20:27:54 +02:00
parent 93b6e5237a
commit ed0745c83a

View File

@ -11,7 +11,7 @@ if(DOXYGEN_FOUND)
COMMENT "Generating API documentation with Doxygen"
VERBATIM)
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html DESTINATION ${CMAKE_INSTALL_DOCDIR})
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html DESTINATION ${CMAKE_INSTALL_DOCDIR} OPTIONAL)
else()
message(WARNING "Documentation enabled, but Doxygen cannot be found")
endif()