From 1566e9afc37f384eed43f9b14a90447b8d8ee061 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sun, 29 Jul 2018 13:42:00 +0200 Subject: python interpreter is mandatory in any case --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cc712e72..41bd4aab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,9 +58,9 @@ if (BUILD_GUI AND NOT BUILD_PYTHON) message(FATAL_ERROR "GUI requires Python to build") endif() +find_package(PythonInterp 3.5 REQUIRED) if (BUILD_PYTHON) # TODO: sensible minimum Python version - find_package(PythonInterp 3.5 REQUIRED) find_package(PythonLibs 3.5 REQUIRED) else() add_definitions("-DNO_PYTHON") -- cgit v1.2.3