python interpreter is mandatory in any case

This commit is contained in:
Miodrag Milanovic 2018-07-29 13:42:00 +02:00
parent 3b354c2a51
commit 1566e9afc3

View File

@ -58,9 +58,9 @@ if (BUILD_GUI AND NOT BUILD_PYTHON)
message(FATAL_ERROR "GUI requires Python to build") message(FATAL_ERROR "GUI requires Python to build")
endif() endif()
find_package(PythonInterp 3.5 REQUIRED)
if (BUILD_PYTHON) if (BUILD_PYTHON)
# TODO: sensible minimum Python version # TODO: sensible minimum Python version
find_package(PythonInterp 3.5 REQUIRED)
find_package(PythonLibs 3.5 REQUIRED) find_package(PythonLibs 3.5 REQUIRED)
else() else()
add_definitions("-DNO_PYTHON") add_definitions("-DNO_PYTHON")