Skip to content

Commit

Permalink
[ports.cmake] vcpkg create: Fix the conditions for judging download r…
Browse files Browse the repository at this point in the history
…esult (microsoft#40956)

Co-authored-by: Monica <[email protected]>
  • Loading branch information
MonicaLiu0311 and Monica authored Sep 24, 2024
1 parent 43b4ba9 commit d07689e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ports.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ elseif(CMD STREQUAL "CREATE")
message(STATUS "Downloading ${URL} -> ${FILENAME}...")
file(DOWNLOAD "${URL}" "${DOWNLOAD_PATH}" STATUS download_status)
list(GET download_status 0 status_code)
if(NOT "${download_status}" EQUAL "0")
if(NOT "${status_code}" EQUAL "0")
message(FATAL_ERROR "Downloading ${URL}... Failed. Status: ${download_status}")
endif()
endif()
Expand Down

0 comments on commit d07689e

Please sign in to comment.