mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 09:25:45 +08:00
Merge pull request #18868 from mpashchenkov:mp/onnx-small-cmake-fix
This commit is contained in:
commit
12fd382fec
@ -4,7 +4,7 @@ set(ONNXRT_ROOT_DIR "" CACHE PATH "ONNX Runtime install directory")
|
||||
|
||||
# For now, check the old name ORT_INSTALL_DIR
|
||||
if(ORT_INSTALL_DIR AND NOT ONNXRT_ROOT_DIR)
|
||||
set(ONNXRT_ROOT_DIR ORT_INSTALL_DIR)
|
||||
set(ONNXRT_ROOT_DIR ${ORT_INSTALL_DIR})
|
||||
endif()
|
||||
|
||||
if(ONNXRT_ROOT_DIR)
|
||||
|
Loading…
Reference in New Issue
Block a user