I'm using Visual Studio and need to set VCPKG_KEEP_ENV_VARS and other environment variables #46259
Closed
David C. Partridge (perdrix52)
started this conversation in
General
Replies: 1 comment
|
I worked out how to do this using Property Manager and setting macros up that are exported as EVs |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
When I build my projects using CMake, I can add to CMakePresets.json e.g.:
but I cannot see how to achieve the equivalent function using standard Visual Studio Solution/Project files. In the VS environment the variable QTDIR is set so I can reference it in my project configurations using $(QTDIR), but I can't see how I can set that into the EV of the same name and set VCPKG_KEEP_ENV_VARS.
Setting this into the System EVs is not a good solution - I need to do this at the VS Solution or Project level.
Help please.
All reactions