blob: c821a1fc1109d6b3ea89cd97b5cb92eebf34620e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
From d26aa78fa89c57938fdedc0cf0e0072e903ff18e Mon Sep 17 00:00:00 2001
From: binsz <274620705z@gmail.com>
Date: Wed, 31 Jan 2024 09:09:49 +0800
Subject: [PATCH] use system python
---
cmake/CMakeLists.txt | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
index d3b1448..8e289d1 100644
--- a/cmake/CMakeLists.txt
+++ b/cmake/CMakeLists.txt
@@ -532,12 +532,12 @@ endif()
if (onnxruntime_BUILD_SHARED_LIB OR onnxruntime_ENABLE_PYTHON)
if (onnxruntime_ENABLE_PYTHON)
if (onnxruntime_ENABLE_LANGUAGE_INTEROP_OPS OR onnxruntime_REQUIRE_PYTHON_EMBED_LIB)
- find_package(Python 3.8 COMPONENTS Interpreter Development NumPy)
+ find_package(Python ${PYTHON_VERSION} COMPONENTS Interpreter Development NumPy)
else()
- find_package(Python 3.8 COMPONENTS Interpreter Development.Module NumPy)
+ find_package(Python ${PYTHON_VERSION} COMPONENTS Interpreter Development.Module NumPy)
endif()
else()
- find_package(Python 3.8 COMPONENTS Interpreter)
+ find_package(Python ${PYTHON_VERSION} COMPONENTS Interpreter)
endif()
endif()
--
2.41.0
|