]>
Commit | Line | Data |
---|---|---|
1e59de90 TL |
1 | # vcpkg_execute_in_download_mode |
2 | ||
3 | The latest version of this document lives in the [vcpkg repo](https://github.com/Microsoft/vcpkg/blob/master/docs/maintainers/vcpkg_execute_in_download_mode.md). | |
4 | ||
5 | Execute a process even in download mode. | |
6 | ||
7 | ## Usage | |
8 | ```cmake | |
9 | vcpkg_execute_in_download_mode( | |
10 | COMMAND <cmd> [<arguments>] | |
11 | [WORKING_DIRECTORY <dir>] | |
12 | [TIMEOUT <seconds>] | |
13 | [RESULT_VARIABLE <variable>] | |
14 | [OUTPUT_VARIABLE <variable>] | |
15 | [ERROR_VARIABLE <variable>] | |
16 | [INPUT_FILE <file>] | |
17 | [OUTPUT_FILE <file>] | |
18 | [ERROR_FILE <file>] | |
19 | [OUTPUT_QUIET] | |
20 | [ERROR_QUIET] | |
21 | [OUTPUT_STRIP_TRAILING_WHITESPACE] | |
22 | [ERROR_STRIP_TRAILING_WHITESPACE] | |
23 | [ENCODING <name>] | |
24 | ) | |
25 | ``` | |
26 | ||
27 | The signature of this function is identical to `execute_process()` except that | |
28 | it only accepts one COMMAND argument, i.e., does not support chaining multiple | |
29 | commands with pipes. | |
30 | ||
31 | See [`execute_process()`] for a detailed description of the parameters. | |
32 | ||
33 | [`execute_process()`]: https://cmake.org/cmake/help/latest/command/execute_process.html | |
34 | ||
35 | ## Source | |
36 | [scripts/cmake/vcpkg\_execute\_in\_download\_mode.cmake](https://github.com/Microsoft/vcpkg/blob/master/scripts/cmake/vcpkg_execute_in_download_mode.cmake) |