From bfca44f4e18e93e7c1ccbefb272adbb8ed8dcd01 Mon Sep 17 00:00:00 2001 From: Olga Telezhnaia Date: Tue, 15 May 2018 14:04:36 +0300 Subject: [PATCH] vcxproj: change build logic Add new condition to invoke vcpkg_install.bat: it's not enough to check the presence of folder vcpkg. We need to check the presence of some header files because this is one of the main goals of this script. Previous build attempt could be aborted, so the folder will exist but the project will not be built properly. Signed-off-by: Olga Telezhnaia --- contrib/buildsystems/Generators/Vcxproj.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/buildsystems/Generators/Vcxproj.pm b/contrib/buildsystems/Generators/Vcxproj.pm index 50d3c625c1..da08ee01d4 100644 --- a/contrib/buildsystems/Generators/Vcxproj.pm +++ b/contrib/buildsystems/Generators/Vcxproj.pm @@ -179,8 +179,9 @@ sub createProject { EOM if ($target eq 'libgit') { print F << "EOM"; - + Initialize VCPKG + del "$cdup\\compat\\vcbuild\\vcpkg" call "$cdup\\compat\\vcbuild\\vcpkg_install.bat" EOM