From f0d887e4888fffc2277e0d3d8ed33c06f8217b99 Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Mon, 15 Apr 2019 03:55:20 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=B8=D1=81=D0=BA=20Python?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMLibBreathe.cmake | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/CMLibBreathe.cmake b/CMLibBreathe.cmake index 5b4cef9..47ee9a1 100644 --- a/CMLibBreathe.cmake +++ b/CMLibBreathe.cmake @@ -6,12 +6,14 @@ if(BUILD_BREATHE_DOC STREQUAL AUTO) find_package(Perl) set(Python_ADDITIONAL_VERSIONS 3.7 3.6 3.5 3.4 3.3 3.2) find_package(PythonInterp) - find_package(Sphinx) - include(FindPythonModule) - find_python_module(breathe) - find_python_module(recommonmark) - if(DOXYGEN_FOUND AND PERL_FOUND AND SPHINX_FOUND AND breathe AND recommonmark) - set(BUILD_BREATHE_DOC ON CACHE STRING "Enable documntation in Breathe format" FORCE) + if (PYTHONINTERP_FOUND) + find_package(Sphinx) + include(FindPythonModule) + find_python_module(breathe) + find_python_module(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) + endif() endif() elseif(BUILD_BREATHE_DOC) find_package(Doxygen REQUIRED)