diff --git a/CMLibBreathe.cmake b/CMLibBreathe.cmake index 85f07b2..b082331 100644 --- a/CMLibBreathe.cmake +++ b/CMLibBreathe.cmake @@ -10,7 +10,7 @@ if (PYTHONINTERP_FOUND) include(FindPythonModule) find_python_module(breathe) find_python_module(recommonmark) - if(DOXYGEN_FOUND AND PERL_FOUND AND PYTHONINTERP_FOUND AND SPHINX_FOUND AND breathe_FOUND AND recommonmark_FOUND) + if(DOXYGEN_FOUND AND PERL_FOUND AND PYTHONINTERP_FOUND AND SPHINX_EXECUTABLE AND breathe AND recommonmark) set(BREATHE_FOUND ON CACHE STRING "Breathe documentation generator enabled" FORCE) else() set(BREATHE_FOUND OFF CACHE STRING "Breathe documentation generator disabled" FORCE)