Doc: [skip ci] fix check for doxygen

This commit is contained in:
wmayer
2020-05-11 10:55:47 +02:00
parent 85f0eddddc
commit 4d8db6474b
3 changed files with 13 additions and 1 deletions

View File

@@ -39,6 +39,7 @@ ConfigureCMakeVariables()
InitializeFreeCADBuildOptions()
CheckInterModuleDependencies()
FreeCADLibpackChecks()
SetupDoxygen()
if(NOT FREECAD_LIBPACK_USE OR FREECAD_LIBPACK_CHECKFILE_CLBUNDLER)
SetupPython()
SetupPCL()

View File

@@ -0,0 +1,12 @@
macro(SetupDoxygen)
# -------------------------------- Doxygen ----------------------------------
find_package(Doxygen)
if (NOT DOXYGEN_FOUND)
message("=====================================================\n"
"Doxygen not found, will not build documentation. \n"
"=====================================================\n")
endif(NOT DOXYGEN_FOUND)
endmacro(SetupDoxygen)

View File

@@ -31,7 +31,6 @@ INSTALL(FILES
DESTINATION ${CMAKE_INSTALL_DOCDIR}
)
find_package(Doxygen)
if(DOXYGEN_FOUND)
IF (DOXYGEN_DOT_EXECUTABLE)