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()
19
19
20
20
if (BUILD_DOCUMENTATION )
21
21
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 ()
28
31
endif ()
29
32
endif ()
30
33
You can’t perform that action at this time.
0 commit comments