Поиск Python

This commit is contained in:
Andrei Astafev 2019-04-15 03:55:20 +03:00
parent 2980180da0
commit f0d887e488

View File

@ -6,13 +6,15 @@ if(BUILD_BREATHE_DOC STREQUAL AUTO)
find_package(Perl) find_package(Perl)
set(Python_ADDITIONAL_VERSIONS 3.7 3.6 3.5 3.4 3.3 3.2) set(Python_ADDITIONAL_VERSIONS 3.7 3.6 3.5 3.4 3.3 3.2)
find_package(PythonInterp) find_package(PythonInterp)
if (PYTHONINTERP_FOUND)
find_package(Sphinx) find_package(Sphinx)
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 SPHINX_FOUND AND breathe AND recommonmark) if(DOXYGEN_FOUND AND PERL_FOUND AND PYTHONINTERP_FOUND AND SPHINX_FOUND AND breathe AND recommonmark)
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)
endif() endif()
endif()
elseif(BUILD_BREATHE_DOC) elseif(BUILD_BREATHE_DOC)
find_package(Doxygen REQUIRED) find_package(Doxygen REQUIRED)
find_package(Perl REQUIRED) find_package(Perl REQUIRED)