Skip to content

Instantly share code, notes, and snippets.

@largerock
Last active January 7, 2024 20:47
Show Gist options
  • Save largerock/401a7945e3b321997b5e31394d275e4f to your computer and use it in GitHub Desktop.
Save largerock/401a7945e3b321997b5e31394d275e4f to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ -d "~/vcpkg" ]; then
echo "installing to home"
git clone https://github.com/Microsoft/vcpkg.git ~/vcpkg
cd ~/vcpkg
./bootstrap-vcpkg.sh
./vcpkg integrate install
echo "export CMAKE_TOOLCHAIN_FILE=$HOME/vcpkg/scripts/buildsystems/vcpkg.cmake" >> ~/.zshrc
fi
@largerock
Copy link
Author

largerock commented Jan 7, 2024

install by running /bin/bash -c "$(curl -fsSL https://gist.githubusercontent.com/largerock/401a7945e3b321997b5e31394d275e4f/raw/38a8bc0d2252e2e2214db7eeb2b2c805560e48c2/install-vcpkg.sh)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment