From c1d5e13d90caf052f6d5ebce2b3cf9742ee40b23 Mon Sep 17 00:00:00 2001 From: Rafael Kitover Date: Thu, 17 Mar 2022 17:40:57 +0000 Subject: [PATCH] build: support NO_LIB env to disable vcpkg deps Check if NO_ environment variable is defined to skip vcpkg deps, this is needed to implement cmake support for NO_GETTEXT properly in a subsequent commit. Signed-off-by: Rafael Kitover --- compat/vcbuild/vcpkg_install.bat | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/compat/vcbuild/vcpkg_install.bat b/compat/vcbuild/vcpkg_install.bat index bc37584d4970ba..64f53b697e56bc 100644 --- a/compat/vcbuild/vcpkg_install.bat +++ b/compat/vcbuild/vcpkg_install.bat @@ -73,9 +73,11 @@ REM ================================================================ echo Installing third-party libraries(%arch%), this may take a while... FOR %%i IN (zlib expat libiconv openssl libssh2 curl) DO ( - cd %VCPKG_ROOT% - IF NOT EXIST "packages\%%i_%arch%" CALL :sub__install_one %%i - IF ERRORLEVEL 1 ( EXIT /B 1 ) + IF NOT DEFINED NO_%%i ( + cd %VCPKG_ROOT% + IF NOT EXIST "packages\%%i_%arch%" CALL :sub__install_one %%i + IF ERRORLEVEL 1 ( EXIT /B 1 ) + ) ) :install_defines