CMake: update python to 3.9.1

Default to Python version 3.9.

Reviewed By: LazyDodo, sybren, sebbas

Ref D10380
This commit is contained in:
Campbell Barton
2021-02-12 07:50:01 +11:00
parent 35ddcb4041
commit 7952ed872a
5 changed files with 16 additions and 16 deletions

View File

@@ -830,8 +830,8 @@ if(WITH_PYTHON)
# 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.7")
message(FATAL_ERROR "At least Python 3.7 is required to build")
if(DEFINED PYTHON_VERSION AND "${PYTHON_VERSION}" VERSION_LESS "3.9")
message(FATAL_ERROR "At least Python 3.9 is required to build")
endif()
file(GLOB RESULT "${CMAKE_SOURCE_DIR}/release/scripts/addons")