vcpkg/docs/maintainers/vcpkg_backup_restore_env_vars.md
Jack·Boos·Yu 5283cdb370
[scripts-audit] Make buildsystem (#20165)
* [script-audit] Make buildsystem

* Fix wrongly merge

* Fix rename

* Format

* Apply suggestions

* Apply suggestion

* Fix bug

* Change the function names

* Fix command line

* Apply suggestions

* version

* typo

* Apply suggestions

* Fix bug

* Fix path

* Fix bug

* Fix un=parser code, move macros to the top

* Apply suggestions

* Update docs

* update doc

* CRLF

* add docs and add a PARENT_SCOPE

* Update doc

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
2021-10-20 14:12:58 -07:00

928 B

vcpkg_backup_restore_env_vars

The latest version of this document lives in the vcpkg repo.

Backup or restore the environment variables

Usage:

vcpkg_backup_env_variables(VARS [<environment-variable>...])
vcpkg_restore_env_variables(VARS [<environment-variable>...])

VARS

The variables to back up or restore. These are placed in the parent scope, so you must backup and restore from the same scope.

Notes

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.

Source

scripts/cmake/vcpkg_backup_restore_env_vars.cmake