Moved Sphinx detection outside of the PYTHONINTERP_FOUND block.

Who knows, maybe the user's Sphinx installation uses a Python we couldn't find.
pull/1340/head
Roman Donchenko 12 years ago
parent 67ae438dae
commit 055a581977
  1. 2
      cmake/OpenCVDetectPython.cmake

@ -74,6 +74,7 @@ if(PYTHONINTERP_FOUND)
OUTPUT_STRIP_TRAILING_WHITESPACE)
endif()
endif(NOT ANDROID AND NOT IOS)
endif()
if(BUILD_DOCS)
find_host_program(SPHINX_BUILD sphinx-build)
@ -89,4 +90,3 @@ if(PYTHONINTERP_FOUND)
endif()
endif()
endif(BUILD_DOCS)
endif()

Loading…
Cancel
Save