Skip to content

Commit

Permalink
Fix building for iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj committed Nov 16, 2023
1 parent b03dac8 commit 284a94e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/onnxruntime.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,10 @@ if(DEFINED ENV{SHERPA_ONNXRUNTIME_LIB_DIR})
endif()
if(NOT EXISTS ${location_onnxruntime_lib})
set(location_onnxruntime_lib $ENV{SHERPA_ONNXRUNTIME_LIB_DIR}/libonnxruntime.a)
if(NOT EXISTS ${location_onnxruntime_lib})
message(FATAL_ERROR "${location_onnxruntime_lib} cannot be found")
endif()
set(onnxruntime_lib_files $ENV{SHERPA_ONNXRUNTIME_LIB_DIR}/libonnxruntime.a)
set(onnxruntime_lib_files $ENV{SHERPA_ONNXRUNTIME_LIB_DIR}/libonnxruntime.a PARENT_SCOPE)
message("Use static lib: ${onnxruntime_lib_files}")
endif()
if(SHERPA_ONNX_ENABLE_GPU)
Expand Down

0 comments on commit 284a94e

Please sign in to comment.