[Bf-blender-cvs] [c921c3bcd0b] master: [cmake] Add minimum python version check to cmake to prevent later build errors.

Ray Molenkamp noreply at git.blender.org
Sat Oct 7 15:59:01 CEST 2017


Commit: c921c3bcd0bc7aeaaa418347891798583cd8bad2
Author: Ray Molenkamp
Date:   Sat Oct 7 07:57:19 2017 -0600
Branches: master
https://developer.blender.org/rBc921c3bcd0bc7aeaaa418347891798583cd8bad2

[cmake] Add minimum python version check to cmake to prevent later build errors.

===================================================================

M	CMakeLists.txt

===================================================================

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"



More information about the Bf-blender-cvs mailing list