mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-23 19:32:23 +00:00
Check for Python_EXECUTABLE in pyxir.cmake to fix Vitis AI EP build (#8631)
Co-authored-by: Jorn Tuyls <jornt.tuyls@gmail.com>
This commit is contained in:
parent
4bfff45859
commit
9053e1522d
1 changed files with 3 additions and 3 deletions
6
cmake/external/pyxir.cmake
vendored
6
cmake/external/pyxir.cmake
vendored
|
|
@ -3,8 +3,8 @@
|
|||
|
||||
set(PYXIR_SHARED_LIB libpyxir.so)
|
||||
|
||||
if(PYTHONINTERP_FOUND)
|
||||
execute_process(COMMAND "${PYTHON_EXECUTABLE}" "-c"
|
||||
if(Python_EXECUTABLE)
|
||||
execute_process(COMMAND "${Python_EXECUTABLE}" "-c"
|
||||
"import pyxir as px; print(px.get_include_dir()); print(px.get_lib_dir());"
|
||||
RESULT_VARIABLE __result
|
||||
OUTPUT_VARIABLE __output
|
||||
|
|
@ -17,7 +17,7 @@ if(PYTHONINTERP_FOUND)
|
|||
list(GET __values 1 PYXIR_LIB_DIR)
|
||||
endif()
|
||||
else()
|
||||
message(STATUS "To find Pyxir, Python interpretater is required to be found.")
|
||||
message(STATUS "To find Pyxir, the Python Executable needs to be found.")
|
||||
endif()
|
||||
|
||||
add_library(pyxir SHARED IMPORTED)
|
||||
|
|
|
|||
Loading…
Reference in a new issue