From dab22c4764a697a0bb1bbaeaf7d128cb7acbde54 Mon Sep 17 00:00:00 2001 From: James Date: Mon, 26 Jun 2023 12:05:03 +0800 Subject: [PATCH] Add detection conditions under the x86 platform. (#186) When downloading onnxruntime, add detection conditions under the x86 platform. --- cmake/onnxruntime.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/onnxruntime.cmake b/cmake/onnxruntime.cmake index 00078231..ef437288 100644 --- a/cmake/onnxruntime.cmake +++ b/cmake/onnxruntime.cmake @@ -62,7 +62,7 @@ function(download_onnxruntime) elseif(WIN32) message(STATUS "CMAKE_VS_PLATFORM_NAME: ${CMAKE_VS_PLATFORM_NAME}") - if(CMAKE_VS_PLATFORM_NAME STREQUAL Win32) + if(CMAKE_VS_PLATFORM_NAME STREQUAL Win32 OR CMAKE_VS_PLATFORM_NAME STREQUAL win32) # If you don't have access to the Internet, # please pre-download onnxruntime #