fix static linking (#2032)
This commit is contained in:
@@ -260,7 +260,7 @@ if(SHERPA_ONNX_ENABLE_RKNN)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(BUILD_SHARED_LIBS AND NOT DEFINED onnxruntime_lib_files)
|
if((BUILD_SHARED_LIBS OR SHERPA_ONNX_USE_PRE_INSTALLED_ONNXRUNTIME_IF_AVAILABLE) AND NOT DEFINED onnxruntime_lib_files)
|
||||||
target_link_libraries(sherpa-onnx-core onnxruntime)
|
target_link_libraries(sherpa-onnx-core onnxruntime)
|
||||||
else()
|
else()
|
||||||
target_link_libraries(sherpa-onnx-core ${onnxruntime_lib_files})
|
target_link_libraries(sherpa-onnx-core ${onnxruntime_lib_files})
|
||||||
|
|||||||
Reference in New Issue
Block a user