Skip to content

Commit

Permalink
fix: ONNXRuntime_LIBRARY-NOTFOUND
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Oct 7, 2023
1 parent f58cb0b commit 8574887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/modules/FindONNXRuntime.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ find_library(ONNXRuntime_LIBRARY_IMP NAMES onnxruntime)

if (WIN32)
get_filename_component(ONNXRuntime_PATH_LIB ${ONNXRuntime_LIBRARY_IMP} DIRECTORY)
find_file(ONNXRuntime_LIBRARY NAMES onnxruntime_maa.dll PATHS "${ONNXRuntime_PATH_LIB}/../bin")
find_file(ONNXRuntime_LIBRARY NAMES onnxruntime_maa.dll PATHS "${ONNXRuntime_PATH_LIB}/../lib")
else ()
set(ONNXRuntime_LIBRARY ${ONNXRuntime_LIBRARY_IMP})
endif (WIN32)
Expand Down

0 comments on commit 8574887

Please sign in to comment.