From d9fde682394203a1ad847ecac63bb2c37868a470 Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Wed, 26 Jun 2019 11:37:37 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=BF=D0=BE=D0=B8=D1=81=D0=BA=20=D1=83=D1=82?= =?UTF-8?q?=D0=B8=D0=BB=D0=B8=D1=82=20=D0=B4=D0=BB=D1=8F=20=D0=B3=D0=B5?= =?UTF-8?q?=D0=BD=D0=B5=D1=80=D0=B0=D1=86=D0=B8=D0=B8=20=D0=B4=D0=BE=D0=BA?= =?UTF-8?q?=D1=83=D0=BC=D0=B5=D0=BD=D1=82=D0=B0=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMLibBreathe.cmake | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/CMLibBreathe.cmake b/CMLibBreathe.cmake index 47ee9a1..af60256 100644 --- a/CMLibBreathe.cmake +++ b/CMLibBreathe.cmake @@ -11,9 +11,13 @@ if(BUILD_BREATHE_DOC STREQUAL AUTO) 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) + 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) + else() + set(BUILD_BREATHE_DOC OFF CACHE STRING "Disable documentation in Breathe format" FORCE) endif() + else() + set(BUILD_BREATHE_DOC OFF CACHE STRING "Disable documentation in Breathe format" FORCE) endif() elseif(BUILD_BREATHE_DOC) find_package(Doxygen REQUIRED) @@ -24,9 +28,9 @@ elseif(BUILD_BREATHE_DOC) include(FindPythonModule) find_python_module(breathe 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() - 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() function(add_breathe_doc)