Skip to content

Commit

Permalink
fix: build error of onnxruntime
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Oct 7, 2023
1 parent 38bd6d5 commit 8b243c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmake/modules/FindONNXRuntime.cmake
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
2 changes: 1 addition & 1 deletion source/MaaFramework/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 8b243c5

Please sign in to comment.