Skip to content

Commit

Permalink
Add VCPKG_ROOT variable (#6195)
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-bershel authored Sep 9, 2022
1 parent 03c71fa commit 148eaf9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
17 changes: 9 additions & 8 deletions images/macos/provision/core/vcpkg.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
#!/bin/bash -e -o pipefail
source ~/utils/utils.sh

# Set env variable for vcpkg
VCPKG_INSTALLATION_ROOT=/usr/local/share/vcpkg
echo "export VCPKG_INSTALLATION_ROOT=${VCPKG_INSTALLATION_ROOT}" | tee -a ~/.bashrc
# Set env variables for vcpkg
VCPKG_ROOT=/usr/local/share/vcpkg
echo "export VCPKG_INSTALLATION_ROOT=${VCPKG_ROOT}" | tee -a ~/.bashrc
echo "export VCPKG_ROOT=${VCPKG_ROOT}" | tee -a ~/.bashrc

# Install vcpkg
git clone https://github.com/Microsoft/vcpkg $VCPKG_INSTALLATION_ROOT
$VCPKG_INSTALLATION_ROOT/bootstrap-vcpkg.sh
$VCPKG_INSTALLATION_ROOT/vcpkg integrate install
chmod -R 0777 $VCPKG_INSTALLATION_ROOT
ln -sf $VCPKG_INSTALLATION_ROOT/vcpkg /usr/local/bin
git clone https://github.com/Microsoft/vcpkg $VCPKG_ROOT
$VCPKG_ROOT/bootstrap-vcpkg.sh
$VCPKG_ROOT/vcpkg integrate install
chmod -R 0777 $VCPKG_ROOT
ln -sf $VCPKG_ROOT/vcpkg /usr/local/bin

invoke_tests "Common" "vcpkg"
4 changes: 4 additions & 0 deletions images/macos/software-report/SoftwareReport.Common.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,10 @@ function Build-PackageManagementEnvironmentTable {
@{
"Name" = "VCPKG_INSTALLATION_ROOT"
"Value" = $env:VCPKG_INSTALLATION_ROOT
},
@{
"Name" = "VCPKG_ROOT"
"Value" = $env:VCPKG_ROOT
}
) | ForEach-Object {
[PSCustomObject] @{
Expand Down

0 comments on commit 148eaf9

Please sign in to comment.