File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -19,12 +19,15 @@ endif()
1919
2020if (BUILD_DOCUMENTATION)
2121 find_package (PythonInterp REQUIRED)
22-
23- # Set here the proper version of Python required to be able to build
24- # tarballs for each example
25- set (PYTHON_REQUIRED_VERSION 2.7)
26- if (${PYTHON_VERSION_STRING} VERSION_LESS ${PYTHON_REQUIRED_VERSION} )
27- message (SEND_ERROR "Building the documentation requires Python >= ${PYTHON_REQUIRED_VERSION} " )
22+ if (NOT PYTHONINTERP_FOUND)
23+ message (SEND_ERROR "Building the documentation requires Python" )
24+ else ()
25+ # Set here the proper version of Python required to be able to build
26+ # tarballs for each example
27+ set (PYTHON_REQUIRED_VERSION 2.7)
28+ if (${PYTHON_VERSION_STRING} VERSION_LESS ${PYTHON_REQUIRED_VERSION} )
29+ message (SEND_ERROR "Building the documentation requires Python >= ${PYTHON_REQUIRED_VERSION} " )
30+ endif ()
2831 endif ()
2932endif ()
3033
You can’t perform that action at this time.
0 commit comments