0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-05-17 03:17:24 +00:00
Files
termux-packages/packages/python-onnxruntime/0004-cmake-python-find-Development-before-Development.Module.patch

11 lines
412 B
Diff
Raw Normal View History

--- 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}")