cmake: Fix FindONNXRuntime to work with prebuilt release binaries

This commit is contained in:
Ryan Pavlik 2022-06-15 09:40:02 -05:00 committed by Moses Turner
parent 8fa568e44f
commit 0b74b3abe8

View file

@ -50,9 +50,10 @@ find_library(
PATH_SUFFIXES lib
HINTS ${PC_ONNXRuntime_LIBRARY_DIRS})
find_path(
ONNXRuntime_INCLUDE_DIR core/session/onnxruntime_cxx_api.h
ONNXRuntime_INCLUDE_DIR onnxruntime_cxx_api.h
PATHS ${ONNXRuntime_ROOT_DIR}
PATH_SUFFIXES onnxruntime include/onnxruntime
PATH_SUFFIXES onnxruntime include include/onnxruntime onnxruntime/core/session
include/onnxruntime/core/session
HINTS ${PC_ONNXRuntime_INCLUDE_DIRS})
include(FindPackageHandleStandardArgs)