Skip to content

Commit

Permalink
rename lib
Browse files Browse the repository at this point in the history
  • Loading branch information
20DM committed Sep 12, 2024
1 parent 6293049 commit 20ecc79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake_files/LookUpONNXRT.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ if(NOT ${onnxruntime_FOUND})
)
set(onnxruntime_INCLUDE_DIR "${onnxruntime_DIR}/include")
set(onnxruntime_LIBRARY_DIR "${onnxruntime_DIR}/lib")
set(onnxruntime_LIBRARIES onnxruntime::onnxruntime)
#set(onnxruntime_LIBRARIES onnxruntime::onnxruntime)
#add_library(${onnxruntime_LIBRARIES} SHARED IMPORTED)
#set_target_properties(${onnxruntime_LIBRARIES} PROPERTIES IMPORTED_LOCATION ${onnxruntime_LIBRARY_DIR}/libonnxruntime.so)
set(onnxruntime_LIBRARIES onnxruntime)
add_library(libonnxruntime SHARED IMPORTED)
set_target_properties(libonnxruntime PROPERTIES IMPORTED_LOCATION ${onnxruntime_LIBRARY_DIR}/libonnxruntime.so)
link_directories(${onnxruntime_LIBRARY_DIR})
Expand Down

0 comments on commit 20ecc79

Please sign in to comment.