From 34c4e454c501369d1a3593dc9d0955367d54d16b Mon Sep 17 00:00:00 2001 From: Maxim Pashchenkov Date: Thu, 19 Nov 2020 21:22:19 +0300 Subject: [PATCH] Added small cmake fix --- cmake/FindONNX.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/FindONNX.cmake b/cmake/FindONNX.cmake index 51aa77b46033..56dd6d5098b0 100644 --- a/cmake/FindONNX.cmake +++ b/cmake/FindONNX.cmake @@ -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)