diff --git a/cmake/modules/FindONNXRuntime.cmake b/cmake/modules/FindONNXRuntime.cmake index 72296e0f4..c25c8378f 100644 --- a/cmake/modules/FindONNXRuntime.cmake +++ b/cmake/modules/FindONNXRuntime.cmake @@ -1,4 +1,4 @@ -find_path(ONNXRuntime_INCLUDE_DIR NAMES onnxruntime/core/session/onnxruntime_c_api.h) +find_path(ONNXRuntime_INCLUDE_DIR NAMES onnxruntime/onnxruntime_c_api.h) find_library(ONNXRuntime_LIBRARY_IMP NAMES onnxruntime) diff --git a/source/MaaFramework/CMakeLists.txt b/source/MaaFramework/CMakeLists.txt index 4972359d4..96412abee 100644 --- a/source/MaaFramework/CMakeLists.txt +++ b/source/MaaFramework/CMakeLists.txt @@ -12,7 +12,7 @@ target_link_libraries(MaaFramework MaaControlUnit MaaUtils) if(WITH_THRIFT) target_link_libraries(MaaFramework MaaThriftController) endif(WITH_THRIFT) -target_link_libraries(MaaFramework ${OpenCV_LIBS} MaaDerpLearning ONNXRuntime::ONNXRuntime HeaderOnlyLibraries) #asio::asio cpr::cpr +target_link_libraries(MaaFramework ${OpenCV_LIBS} MaaDerpLearning ONNXRuntime::ONNXRuntime HeaderOnlyLibraries) # clang 15之后有ranges # if (CMAKE_CXX_COMPILER_ID MATCHES ".*Clang")