0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-03-04 04:48:55 +00:00
termux-packages/packages/python-torch/0007-cmake-Dependencies.cmake.patch
2024-10-21 01:07:16 +08:00

14 lines
637 B
Diff

diff --git a/cmake/Dependencies.cmake b/cmake/Dependencies.cmake
index c4661e3..0e0150d 100644
--- a/cmake/Dependencies.cmake
+++ b/cmake/Dependencies.cmake
@@ -873,7 +873,7 @@ if(BUILD_PYTHON)
if(Python_Development.Module_FOUND)
if(USE_NUMPY)
if(NOT Python_NumPy_FOUND)
- message(WARNING "NumPy could not be found. Not building with NumPy. Suppress this warning with -DUSE_NUMPY=OFF")
+ message(FATAL_ERROR "NumPy could not be found. Not building with NumPy. Suppress this warning with -DUSE_NUMPY=OFF")
caffe2_update_option(USE_NUMPY OFF)
else()
caffe2_update_option(USE_NUMPY ON)