build: fix checking if bin pkg host deps installed

Fix the check for host dependency packages being downloaded to not run
if the package is already installed.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
Rafael Kitover 2025-07-13 16:03:31 +00:00
parent 80f595c0b0
commit 357eccc6eb
No known key found for this signature in database
GPG Key ID: 08AB596679D86240
1 changed files with 4 additions and 4 deletions

View File

@ -365,11 +365,11 @@ function(get_binary_packages vcpkg_exe)
if(NOT pkg_installed)
download_package("${pkg}" "${bin_pkgs_dir}")
endif()
if(NOT EXISTS "${bin_pkgs_dir}/${pkg}")
message(STATUS "Failed to download host dependency package '${pkg}', aborting.")
return()
if(NOT EXISTS "${bin_pkgs_dir}/${pkg}")
message(STATUS "Failed to download host dependency package '${pkg}', aborting.")
return()
endif()
endif()
endforeach()
endwhile()