@@ -13,18 +13,18 @@ if(BUILD_SHARED_LIBS)
1313 message (FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS } " )
1414endif ()
1515
16- set (onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.1 /onnxruntime-osx-universal2-static_lib-1.17.1 .zip" )
17- set (onnxruntime_URL2 "https://hf-mirror.com/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-universal2-static_lib-1.17.1 .zip" )
18- set (onnxruntime_HASH "SHA256=45599dbd2fb9dd52d6505930c0e82ca165391e222a68f5606b9ea9d4f3922e15 " )
16+ set (onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.23.2 /onnxruntime-osx-universal2-static_lib-1.23.2 .zip" )
17+ set (onnxruntime_URL2 "https://hf-mirror.com/csukuangfj/onnxruntime-libs/resolve/main/1.23.2/ onnxruntime-osx-universal2-static_lib-1.23.2 .zip" )
18+ set (onnxruntime_HASH "SHA256=00816fda16166859fed41dacb786d3dfc3323bbc1a8fa57a235922f597953986 " )
1919
2020# If you don't have access to the Internet,
2121# please download onnxruntime to one of the following locations.
2222# You can add more if you want.
2323set (possible_file_locations
24- $ENV{HOME} /Downloads/onnxruntime-osx-universal2-static_lib-1.17.1 .zip
25- ${CMAKE_SOURCE_DIR } /onnxruntime-osx-universal2-static_lib-1.17.1 .zip
26- ${CMAKE_BINARY_DIR } /onnxruntime-osx-universal2-static_lib-1.17.1 .zip
27- /tmp/onnxruntime-osx-universal2-static_lib-1.17.1 .zip
24+ $ENV{HOME} /Downloads/onnxruntime-osx-universal2-static_lib-1.23.2 .zip
25+ ${CMAKE_SOURCE_DIR } /onnxruntime-osx-universal2-static_lib-1.23.2 .zip
26+ ${CMAKE_BINARY_DIR } /onnxruntime-osx-universal2-static_lib-1.23.2 .zip
27+ /tmp/onnxruntime-osx-universal2-static_lib-1.23.2 .zip
2828)
2929
3030foreach (f IN LISTS possible_file_locations)
@@ -60,3 +60,6 @@ set(onnxruntime_lib_files ${onnxruntime_lib_files} PARENT_SCOPE)
6060
6161message (STATUS "onnxruntime lib files: ${onnxruntime_lib_files} " )
6262install (FILES ${onnxruntime_lib_files} DESTINATION lib)
63+
64+ # disable coreml when using static onnxruntime lib
65+ add_definitions (-DSHERPA_ONNX_DISABLE_COREML )
0 commit comments