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:
authorCampbell Barton <ideasman42@gmail.com>2017-10-09 17:36:36 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-10-09 17:36:36 +0300
commit6ec43a765b775960fd47df7ad450a521413012c0 (patch)
treea8860d79cc38e31cf476f11b704aa0dff0e65768 /CMakeLists.txt
parentabcda06934aba054de8540b66b13c2bbc5f8f515 (diff)
parent4b3e6cb728cb5d0e603f3b23b32ad1f8bfc68558 (diff)
Merge branch 'master' into blender2.8
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6e6520cfdda..ad5fb57db44 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -731,6 +731,17 @@ if(WITH_INTERNATIONAL)
endif()
if(WITH_PYTHON)
+ # While we have this as an '#error' in bpy_util.h,
+ # upgrading Python tends to cause confusion for users who build.
+ # Give the error message early to make this more obvious.
+ #
+ # Do this before main 'platform_*' checks,
+ # because UNIX will search for the old Python paths which may not exist.
+ # giving errors about missing paths before this case is met.
+ if(DEFINED PYTHON_VERSION AND "${PYTHON_VERSION}" VERSION_LESS "3.6")
+ message(FATAL_ERROR "At least Python 3.6 is required to build")
+ endif()
+
if(NOT EXISTS "${CMAKE_SOURCE_DIR}/release/scripts/addons/modules")
message(WARNING
"Addons path '${CMAKE_SOURCE_DIR}/release/scripts/addons' is missing, "