Commit 055a5819 authored by Roman Donchenko's avatar Roman Donchenko

Moved Sphinx detection outside of the PYTHONINTERP_FOUND block.

Who knows, maybe the user's Sphinx installation uses a Python we couldn't find.
parent 67ae438d
......@@ -74,8 +74,9 @@ if(PYTHONINTERP_FOUND)
OUTPUT_STRIP_TRAILING_WHITESPACE)
endif()
endif(NOT ANDROID AND NOT IOS)
endif()
if(BUILD_DOCS)
if(BUILD_DOCS)
find_host_program(SPHINX_BUILD sphinx-build)
if(SPHINX_BUILD)
execute_process(COMMAND "${SPHINX_BUILD}"
......@@ -88,5 +89,4 @@ if(PYTHONINTERP_FOUND)
message(STATUS "Found Sphinx ${SPHINX_VERSION}: ${SPHINX_BUILD}")
endif()
endif()
endif(BUILD_DOCS)
endif()
endif(BUILD_DOCS)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment