mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-29 15:21:59 +08:00
37 lines
968 B
Markdown
37 lines
968 B
Markdown
# vcpkg_execute_build_process
|
|
|
|
Execute a required build process
|
|
|
|
## Usage
|
|
```cmake
|
|
vcpkg_execute_build_process(
|
|
COMMAND <cmd> [<args>...]
|
|
[NO_PARALLEL_COMMAND <cmd> [<args>...]]
|
|
WORKING_DIRECTORY </path/to/dir>
|
|
LOGNAME <log_name>)
|
|
)
|
|
```
|
|
## Parameters
|
|
### COMMAND
|
|
The command to be executed, along with its arguments.
|
|
|
|
### NO_PARALLEL_COMMAND
|
|
Optional parameter which specifies a non-parallel command to attempt if a
|
|
failure potentially due to parallelism is detected.
|
|
|
|
### WORKING_DIRECTORY
|
|
The directory to execute the command in.
|
|
|
|
### LOGNAME
|
|
The prefix to use for the log files.
|
|
|
|
This should be a unique name for different triplets so that the logs don't
|
|
conflict when building multiple at once.
|
|
|
|
## Examples
|
|
|
|
* [icu](https://github.com/Microsoft/vcpkg/blob/master/ports/icu/portfile.cmake)
|
|
|
|
## Source
|
|
[scripts/cmake/vcpkg_execute_build_process.cmake](https://github.com/Microsoft/vcpkg/blob/master/scripts/cmake/vcpkg_execute_build_process.cmake)
|