This commit is contained in:
Fangjun Kuang
2024-11-08 21:07:36 +08:00
committed by GitHub
parent f94cca71cf
commit f97daed408
3 changed files with 15 additions and 4 deletions

View File

@@ -214,7 +214,7 @@ if(SHERPA_ONNX_ENABLE_GPU)
)
endif()
if(BUILD_SHARED_LIBS)
if(BUILD_SHARED_LIBS AND NOT DEFINED onnxruntime_lib_files)
target_link_libraries(sherpa-onnx-core onnxruntime)
else()
target_link_libraries(sherpa-onnx-core ${onnxruntime_lib_files})