Don't understand how to correctly set up vcpkg. Do I place the app in my PATH for global access, or do I bootstrap per project? #47543
Replies: 1 comment
-
IMO on-demand means: Don't add global environment variable settings.
AFAIU the purpose of I would not recommend to add Setting
I think neither cmake nor msbuild care about vcpkg being in |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am on Win11 x64 Pro, and I am following these:
My goal is to set up
vcpkg
globally so I can build both withCMake
andMSBuild
using the command line, Visual Studio, and VS Code if I want.Basically I want to be able to use it for all scenarios it was intended for on-demand.
So I followed these steps to get
vcpkg.exe
spit out:Once I've done all this, can I now drop this whole folder into a custom directory and add it to my system
%PATH%
so I can use it globally?For example:
vcpkg
folder toC:\BIN\vcpkg
C:\BIN\vcpkg
.\vcpkg.exe integrate install
(for MSBuild)VCPKG_ROOT
, and set it toC:\BIN\vcpkg
:PATH
environment variable and place%VCPKG_ROOT%
at the top:So, my questions:
Beta Was this translation helpful? Give feedback.
All reactions