Skip to content

Commit

Permalink
Add detection conditions under the x86 platform. (#186)
Browse files Browse the repository at this point in the history
When downloading onnxruntime, add detection conditions under the x86 platform.
  • Loading branch information
neuxys authored Jun 26, 2023
1 parent 1c3dac9 commit dab22c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/onnxruntime.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down

0 comments on commit dab22c4

Please sign in to comment.