The latest version of this document lives in the vcpkg repo.
Backup or restore the environment variables
vcpkg_backup_env_variables(VARS [<environment-variable>...])
vcpkg_restore_env_variables(VARS [<environment-variable>...])
The variables to back up or restore. These are placed in the parent scope, so you must backup and restore from the same scope.
One must always call vcpkg_backup_env_variables
before
vcpkg_restore_env_variables
; however, vcpkg_restore_env_variables
does not change the back up variables, and so you may call restore
multiple times for one backup
.