From d07689ef165f033de5c0710e4f67c193a85373e1 Mon Sep 17 00:00:00 2001 From: MonicaLiu <110024546+MonicaLiu0311@users.noreply.github.com> Date: Tue, 24 Sep 2024 21:10:12 +0000 Subject: [PATCH] [ports.cmake] vcpkg create: Fix the conditions for judging download result (#40956) Co-authored-by: Monica --- scripts/ports.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ports.cmake b/scripts/ports.cmake index b3eedf45832074..66b6b5a66939ae 100644 --- a/scripts/ports.cmake +++ b/scripts/ports.cmake @@ -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()