Add detection conditions under the x86 platform. (#186)
When downloading onnxruntime, add detection conditions under the x86 platform.
This commit is contained in:
@@ -62,7 +62,7 @@ function(download_onnxruntime)
|
|||||||
elseif(WIN32)
|
elseif(WIN32)
|
||||||
message(STATUS "CMAKE_VS_PLATFORM_NAME: ${CMAKE_VS_PLATFORM_NAME}")
|
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,
|
# If you don't have access to the Internet,
|
||||||
# please pre-download onnxruntime
|
# please pre-download onnxruntime
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user