From 8c155f8adc54e8a58ffbe9ad3331f54640df94fc Mon Sep 17 00:00:00 2001 From: Simon van Bernem Date: Mon, 7 Mar 2022 18:44:51 +0100 Subject: [PATCH] Made install_vcpkg_dendencies.bat work from any working directory pushd %~dp0 will push the directory that contains the file as the working directory and we also pop it at the end to be a good citizen and restore the previous working directory --- vcpkg/install_vcpkg_dependencies.bat | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vcpkg/install_vcpkg_dependencies.bat b/vcpkg/install_vcpkg_dependencies.bat index d6f40c50..9ea72915 100644 --- a/vcpkg/install_vcpkg_dependencies.bat +++ b/vcpkg/install_vcpkg_dependencies.bat @@ -1,5 +1,7 @@ @echo off +pushd %~dp0 + REM get vcpkg distribution if not exist vcpkg git clone https://github.com/Microsoft/vcpkg.git @@ -8,3 +10,5 @@ if not exist vcpkg\vcpkg.exe call vcpkg\bootstrap-vcpkg.bat -disableMetrics REM install required packages vcpkg\vcpkg.exe install --triplet x64-windows-static freetype glfw3 capstone[arm,arm64,x86] + +popd