diff options
author | Ray Molenkamp <github@lazydodo.com> | 2021-06-22 03:19:07 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2021-06-22 03:19:07 +0300 |
commit | 4947aa29db0a388b166704bd22eb416896064c61 (patch) | |
tree | b06c526c0669176ebdd1d7343b5fffddf7cda250 /CMakeLists.txt | |
parent | d443dcc73364c55385dbd82745459f6af0af5a41 (diff) |
CMake: Improve python version mismatch error
When CMake detects and incompatible Python version
it errors out with an error saying at-least python 3.9
is required, but doesn't mention the version it detected.
This makes troubleshooting the problem harder than it
needs to be.
This diff changes the error message to include the python
version CMake detected.
Differential Revision: https://developer.blender.org/D11666
Reviewed By: Ray Molenkamp
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f315fa87236..297e32bd67e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -836,7 +836,7 @@ if(WITH_PYTHON) # 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.9") - message(FATAL_ERROR "At least Python 3.9 is required to build") + message(FATAL_ERROR "At least Python 3.9 is required to build, but found Python ${PYTHON_VERSION}") endif() file(GLOB RESULT "${CMAKE_SOURCE_DIR}/release/scripts/addons") |