0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-09-03 11:40:40 +00:00
Files
termux-packages/packages/python-onnxruntime/0004-cmake-python-find-Development-before-Development.Module.patch
2025-02-15 12:18:04 +08:00

11 lines
409 B
Diff

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