Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
| Show First 20 Lines • Show All 900 Lines • ▼ Show 20 Lines | |||||
| if(WITH_PYTHON) | if(WITH_PYTHON) | ||||
| # While we have this as an '#error' in 'bpy_capi_utils.h', | # While we have this as an '#error' in 'bpy_capi_utils.h', | ||||
| # upgrading Python tends to cause confusion for users who build. | # upgrading Python tends to cause confusion for users who build. | ||||
| # Give the error message early to make this more obvious. | # Give the error message early to make this more obvious. | ||||
| # | # | ||||
| # Do this before main 'platform_*' checks, | # Do this before main 'platform_*' checks, | ||||
| # because UNIX will search for the old Python paths which may not exist. | # because UNIX will search for the old Python paths which may not exist. | ||||
| # giving errors about missing paths before this case is met. | # giving errors about missing paths before this case is met. | ||||
| if(DEFINED PYTHON_VERSION AND "${PYTHON_VERSION}" VERSION_LESS "3.9") | if(DEFINED PYTHON_VERSION AND "${PYTHON_VERSION}" VERSION_LESS "3.10") | ||||
| message(FATAL_ERROR "At least Python 3.9 is required to build, but found Python ${PYTHON_VERSION}") | message(FATAL_ERROR "At least Python 3.10 is required to build, but found Python ${PYTHON_VERSION}") | ||||
| endif() | endif() | ||||
| file(GLOB RESULT "${CMAKE_SOURCE_DIR}/release/scripts/addons") | file(GLOB RESULT "${CMAKE_SOURCE_DIR}/release/scripts/addons") | ||||
| list(LENGTH RESULT DIR_LEN) | list(LENGTH RESULT DIR_LEN) | ||||
| if(DIR_LEN EQUAL 0) | if(DIR_LEN EQUAL 0) | ||||
| message(WARNING | message(WARNING | ||||
| "Addons path '${CMAKE_SOURCE_DIR}/release/scripts/addons' is missing, " | "Addons path '${CMAKE_SOURCE_DIR}/release/scripts/addons' is missing, " | ||||
| "This is a 'git submodule', which are known not to work with bridges to other version " | "This is a 'git submodule', which are known not to work with bridges to other version " | ||||
| ▲ Show 20 Lines • Show All 1,168 Lines • Show Last 20 Lines | |||||