Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Molenkamp <github@lazydodo.com>2017-10-07 16:57:19 +0300
committerRay Molenkamp <github@lazydodo.com>2017-10-07 16:58:54 +0300
commitc921c3bcd0bc7aeaaa418347891798583cd8bad2 (patch)
tree3cbee22d80093544dddb84873d53c63e79d78019 /CMakeLists.txt
parentd7eabc67657c34dbf209a47bf637226b563abc01 (diff)
[cmake] Add minimum python version check to cmake to prevent later build errors.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 552f747a39d..370c1ed520c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1493,6 +1493,9 @@ endif()
# with _any_ library but since we used a fixed python version this tends to
# be most problematic.
if(WITH_PYTHON)
+ if(${PYTHON_VERSION} VERSION_LESS "3.6")
+ message(FATAL_ERROR "Atleast Python 3.6 is required to build")
+ endif()
if(NOT EXISTS "${PYTHON_INCLUDE_DIR}/Python.h")
message(FATAL_ERROR
"Missing: \"${PYTHON_INCLUDE_DIR}/Python.h\",\n"