Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow redirection of the downloads folder with an environment variable. #4883

Merged
merged 7 commits into from
Dec 11, 2018
Merged

Allow redirection of the downloads folder with an environment variable. #4883

merged 7 commits into from
Dec 11, 2018

Conversation

BillyONeal
Copy link
Member

  • Add downloads directory environment variable detection logic to vcpkgpaths.
  • Wire the downloads directory from the paths into the cmake command.
  • Patch up the bootstrap script for *nix to use the same environment variable.

@BillyONeal
Copy link
Member Author

Reviewers, be most mistrustful of the bootstrap script; I tested it on MacOS but I am far from a bash expert :)

@ras0219-msft ras0219-msft self-assigned this Dec 11, 2018
@ras0219-msft ras0219-msft merged commit cf7e2f3 into microsoft:master Dec 11, 2018
@ras0219-msft
Copy link
Contributor

Thanks for the PR!

@BillyONeal
Copy link
Member Author

No, thank you!

@BillyONeal BillyONeal deleted the redirect_downloads branch December 20, 2018 03:05
strega-nil pushed a commit to strega-nil/vcpkg that referenced this pull request May 5, 2021
…e. (microsoft#4883)

* Add detection for VCPKG_DOWNLOADS environment variable in vcpkgpaths.cpp.

* Pass the downloads directory from VcpkgPaths to cmake.

* Also fixup bootstrap on *nix.

* Make error message a little prettier.

* Make that bash script actually work :)

* [vcpkg] Alter Optional<> usage style

* [vcpkg-docs] Add section on Environment Variables to the docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants