MINGW-packages/mingw-w64-blender/0014-fix-find-numpy-2.patch
2025-08-27 00:01:43 +03:00

13 lines
666 B
Diff

diff -Naur blender-4.5.2/CMakeLists.txt blender-4.5.2-patched/CMakeLists.txt
--- blender-4.5.2/CMakeLists.txt 2025-08-26 12:25:31.702840700 +0300
+++ blender-4.5.2-patched/CMakeLists.txt 2025-08-26 12:26:19.252207200 +0300
@@ -2551,7 +2551,7 @@
elseif((WITH_PYTHON_INSTALL AND WITH_PYTHON_INSTALL_NUMPY) OR WITH_PYTHON_NUMPY)
if(("${PYTHON_NUMPY_PATH}" STREQUAL "") OR (${PYTHON_NUMPY_PATH} MATCHES NOTFOUND))
set(_numpy_include "_core/include")
- if(PYTHON_VERSION VERSION_LESS "3.13")
+ if(PYTHON_VERSION VERSION_LESS "3.11")
set(_numpy_include "core/include")
endif()
find_python_package(numpy "${_numpy_include}")