Исправлен поиск утилит для генерации документации

This commit is contained in:
Andrei Astafev 2019-06-26 11:37:37 +03:00
parent 4611d07a41
commit d9fde68239

View File

@ -11,9 +11,13 @@ if(BUILD_BREATHE_DOC STREQUAL AUTO)
include(FindPythonModule) include(FindPythonModule)
find_python_module(breathe) find_python_module(breathe)
find_python_module(recommonmark) find_python_module(recommonmark)
if(DOXYGEN_FOUND AND PERL_FOUND AND PYTHONINTERP_FOUND AND SPHINX_FOUND AND breathe AND recommonmark) if(DOXYGEN_FOUND AND PERL_FOUND AND PYTHONINTERP_FOUND AND SPHINX_FOUND AND breathe_FOUND AND recommonmark_FOUND)
set(BUILD_BREATHE_DOC ON CACHE STRING "Enable documntation in Breathe format" FORCE) set(BUILD_BREATHE_DOC ON CACHE STRING "Enable documntation in Breathe format" FORCE)
else()
set(BUILD_BREATHE_DOC OFF CACHE STRING "Disable documentation in Breathe format" FORCE)
endif() endif()
else()
set(BUILD_BREATHE_DOC OFF CACHE STRING "Disable documentation in Breathe format" FORCE)
endif() endif()
elseif(BUILD_BREATHE_DOC) elseif(BUILD_BREATHE_DOC)
find_package(Doxygen REQUIRED) find_package(Doxygen REQUIRED)
@ -24,9 +28,9 @@ elseif(BUILD_BREATHE_DOC)
include(FindPythonModule) include(FindPythonModule)
find_python_module(breathe REQUIRED) find_python_module(breathe REQUIRED)
find_python_module(recommonmark REQUIRED) find_python_module(recommonmark REQUIRED)
set(BUILD_BREATHE_DOC ON CACHE STRING "Enable documntation in Breathe format" FORCE) set(BUILD_BREATHE_DOC ON CACHE STRING "Enable documentation in Breathe format" FORCE)
else() else()
set(BUILD_BREATHE_DOC OFF CACHE STRING "Enable documntation in Breathe format" FORCE) set(BUILD_BREATHE_DOC OFF CACHE STRING "Disable documentation in Breathe format" FORCE)
endif() endif()
function(add_breathe_doc) function(add_breathe_doc)