diff options
author | MACHIZAUD Andréa <andrea.machizaud@gmail.com> | 2022-06-18 18:15:28 +0300 |
---|---|---|
committer | MACHIZAUD Andréa <andrea.machizaud@gmail.com> | 2022-06-25 18:52:42 +0300 |
commit | 087e1d803632e86e2be743bcbe16425cbea3a797 (patch) | |
tree | d6f64d172b6ece34eba244bd08ea93f40937e394 | |
parent | 84319911c5a4a152f5574b398a923e476414984c (diff) |
Fail with error code if install_vcpkg_dependencies.bat commands fail
-rw-r--r-- | vcpkg/install_vcpkg_dependencies.bat | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/vcpkg/install_vcpkg_dependencies.bat b/vcpkg/install_vcpkg_dependencies.bat index da8145f1..d858a660 100644 --- a/vcpkg/install_vcpkg_dependencies.bat +++ b/vcpkg/install_vcpkg_dependencies.bat @@ -1,14 +1,17 @@ @echo off
+setlocal
pushd %~dp0
REM get vcpkg distribution
-if not exist vcpkg git clone https://github.com/Microsoft/vcpkg.git
+if not exist vcpkg git clone https://github.com/Microsoft/vcpkg.git || exit /b 1
REM build vcpkg
-if not exist vcpkg\vcpkg.exe call vcpkg\bootstrap-vcpkg.bat -disableMetrics
+if not exist vcpkg\vcpkg.exe call vcpkg\bootstrap-vcpkg.bat -disableMetrics || exit /b 2
+
+set VCPKG_ROOT=%cd%\vcpkg
REM install required packages
-vcpkg\vcpkg.exe install --triplet x64-windows-static
+vcpkg\vcpkg.exe install --triplet x64-windows-static || exit /b 3
popd
|