build: add option VCPKG_BINARY_PACKAGES

Add CMake option VCPKG_BINARY_PACKAGES, defaulting to TRUE to download
and use binary packages for vcpkg dependencies.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
Rafael Kitover 2025-07-02 20:27:43 +00:00
parent e8d4adaf12
commit 856abf8067
No known key found for this signature in database
GPG Key ID: 08AB596679D86240
2 changed files with 3 additions and 1 deletions

View File

@ -22,6 +22,8 @@ if(TAG_RELEASE)
include(MakeReleaseCommitAndTag)
endif()
option(VCPKG_BINARY_PACKAGES "Use vcpkg binary packages" TRUE)
set(VCPKG_DEPS pkgconf zlib pthreads gettext-libintl wxwidgets nanosvg)
set(VCPKG_DEPS_OPTIONAL

View File

@ -551,7 +551,7 @@ function(vcpkg_set_toolchain)
WORKING_DIRECTORY ${VCPKG_ROOT}
)
if (NOT NO_VCPKG_UPDATES)
if (NOT (NO_VCPKG_UPDATES OR (NOT VCPKG_BINARY_PACKAGES)))
get_binary_packages(${vcpkg_exe})
endif()