James
Committed by GitHub

Add detection conditions under the x86 platform. (#186)

When downloading onnxruntime, add detection conditions under the x86 platform.
@@ -62,7 +62,7 @@ function(download_onnxruntime) @@ -62,7 +62,7 @@ function(download_onnxruntime)
62 elseif(WIN32) 62 elseif(WIN32)
63 message(STATUS "CMAKE_VS_PLATFORM_NAME: ${CMAKE_VS_PLATFORM_NAME}") 63 message(STATUS "CMAKE_VS_PLATFORM_NAME: ${CMAKE_VS_PLATFORM_NAME}")
64 64
65 - if(CMAKE_VS_PLATFORM_NAME STREQUAL Win32) 65 + if(CMAKE_VS_PLATFORM_NAME STREQUAL Win32 OR CMAKE_VS_PLATFORM_NAME STREQUAL win32)
66 # If you don't have access to the Internet, 66 # If you don't have access to the Internet,
67 # please pre-download onnxruntime 67 # please pre-download onnxruntime
68 # 68 #