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

When downloading onnxruntime, add detection conditions under the x86 platform.
This commit is contained in:
James
2023-06-26 12:05:03 +08:00
committed by GitHub
parent 1c3dac9001
commit dab22c4764

View File

@@ -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
#