0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-05-11 14:25:40 +00:00
Files
termux-packages/packages/python-onnxruntime/0004-cmake-python-find-Development-before-Development.Module.patch
2025-03-09 10:32:35 +08:00

11 lines
412 B
Diff

--- a/cmake/CMakeLists.txt
+++ b/cmake/CMakeLists.txt
@@ -673,6 +673,7 @@
if (onnxruntime_REQUIRE_PYTHON_EMBED_LIB)
find_package(Python 3.10 COMPONENTS Interpreter Development NumPy)
else()
+ find_package(Python 3.10 COMPONENTS Development)
find_package(Python 3.10 COMPONENTS Interpreter Development.Module NumPy)
endif()
message("Numpy version: ${Python_NumPy_VERSION}")