From 41895eea36ea94ff6a8d7536044ae2763ba8b32f Mon Sep 17 00:00:00 2001 From: Andy Vandijck Date: Mon, 23 Jun 2025 11:46:01 +0200 Subject: [PATCH] Add option not to update vcpkg builds Add option not to update vcpkg builds --- cmake/Set-Toolchain-vcpkg.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/Set-Toolchain-vcpkg.cmake b/cmake/Set-Toolchain-vcpkg.cmake index 468b2ab3..dfca1dfe 100644 --- a/cmake/Set-Toolchain-vcpkg.cmake +++ b/cmake/Set-Toolchain-vcpkg.cmake @@ -499,7 +499,9 @@ function(vcpkg_set_toolchain) WORKING_DIRECTORY ${VCPKG_ROOT} ) - get_binary_packages(${vcpkg_exe}) + if (NOT NO_VCPKG_UPDATES) + get_binary_packages(${vcpkg_exe}) + endif() if(NOT binary_packages_installed) # Get number of seconds since midnight (might be wrong if am/pm is in effect on Windows.)