docs: add additional validation for doc tools version
Signed-off-by: Nicolas Oliver <dario.n.oliver@intel.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
committed by
Brendan Le Foll
parent
c6d49f6255
commit
e9d1b1ef28
@@ -1,6 +1,6 @@
|
||||
if (DOXYGEN_FOUND)
|
||||
find_package (Sphinx 1.3.6 REQUIRED)
|
||||
if (SPHINX_FOUND)
|
||||
find_package (Sphinx 1.3 REQUIRED)
|
||||
if (SPHINX_FOUND AND SPHINX_VERSION VERSION_GREATER "1.3")
|
||||
if (NOT DEFINED SPHINX_THEME)
|
||||
set (SPHINX_THEME default)
|
||||
endif ()
|
||||
@@ -37,5 +37,7 @@ if (DOXYGEN_FOUND)
|
||||
)
|
||||
|
||||
add_dependencies (sphinx ${SWIG_MODULE_python2-mraa_REAL_NAME})
|
||||
endif ()
|
||||
else ()
|
||||
message (SEND_ERROR "ERROR - Failed to find a compatible version of Sphinx. Python API doc will not be generated")
|
||||
endif (SPHINX_FOUND AND SPHINX_VERSION VERSION_GREATER "1.3")
|
||||
endif ()
|
||||
|
||||
Reference in New Issue
Block a user