Fix: vcpkg will clone from $VCPKG_LINK

This commit is contained in:
Tal Regev 2023-03-15 01:52:21 +02:00
parent 8494e832e6
commit 924b85c1a8
No known key found for this signature in database
GPG Key ID: A421558E0F87AC82
2 changed files with 4 additions and 3 deletions

View File

@ -8,12 +8,13 @@ if [ ! -d "$PLATFORM_NAME" ]; then
exit 1
fi
. $PWD/3rdParty/vcpkg_ports/vcpkg_link.sh
BUILD_DIR="$PWD/3rdParty/$PLATFORM_NAME"
VCPKG_ROOT="$BUILD_DIR/vcpkg"
if [ ! -d $VCPKG_ROOT ]; then
mkdir -p $BUILD_DIR
git -C $BUILD_DIR clone https://github.com/microsoft/vcpkg
git -C $BUILD_DIR clone $VCPKG_LINK
fi
git -C $VCPKG_ROOT pull

View File

@ -6,14 +6,14 @@ if [ ! -d "wasm" ]; then
exit 1
fi
. $PWD/3rdParty/vcpkg_ports/vcpkg_link.sh
BUILD_DIR="$PWD/3rdParty/wasm"
VCPKG_PORTS="$PWD/3rdParty/vcpkg_ports"
VCPKG_ROOT="$BUILD_DIR/vcpkg"
if [ ! -d $VCPKG_ROOT ]; then
mkdir -p $BUILD_DIR
git -C $BUILD_DIR clone https://github.com/microsoft/vcpkg
git -C $BUILD_DIR clone $VCPKG_LINK
fi
git -C $VCPKG_ROOT pull