2018-10-26 03:34:45 +08:00
|
|
|
# vcpkg_add_to_path
|
|
|
|
|
|
|
|
Add a directory to the PATH environment variable
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
```cmake
|
|
|
|
vcpkg_add_to_path([PREPEND] <${PYTHON3_DIR}>)
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
### <positional>
|
|
|
|
The directory to add
|
|
|
|
|
|
|
|
### PREPEND
|
|
|
|
Prepends the directory.
|
|
|
|
|
|
|
|
The default is to append.
|
|
|
|
|
2019-03-12 08:29:37 +08:00
|
|
|
## Examples:
|
2019-03-14 04:52:20 +08:00
|
|
|
* [curl](https://github.com/Microsoft/vcpkg/blob/master/ports/curl/portfile.cmake#L75)
|
2019-03-12 08:29:37 +08:00
|
|
|
* [folly](https://github.com/Microsoft/vcpkg/blob/master/ports/folly/portfile.cmake#L15)
|
|
|
|
* [z3](https://github.com/Microsoft/vcpkg/blob/master/ports/z3/portfile.cmake#L13)
|
|
|
|
|
2019-03-15 04:43:49 +08:00
|
|
|
|
2018-10-26 03:34:45 +08:00
|
|
|
## Source
|
2019-03-15 04:43:49 +08:00
|
|
|
[scripts/cmake/vcpkg_add_to_path.cmake](https://github.com/Microsoft/vcpkg/blob/master/scripts/cmake/vcpkg_add_to_path.cmake)
|