Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1.27 KB

vcpkg_execute_required_process.md

File metadata and controls

37 lines (28 loc) · 1.27 KB

vcpkg_execute_required_process

Execute a process with logging and fail the build if the command fails.

Usage

vcpkg_execute_required_process(
    COMMAND <${PERL}> [<arguments>...]
    WORKING_DIRECTORY <${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg>
    LOGNAME <build-${TARGET_TRIPLET}-dbg>
)

Parameters

ALLOW_IN_DOWNLOAD_MODE

Allows the command to execute in Download Mode.
See execute_process() override.

COMMAND

The command to be executed, along with its arguments.

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

Source

scripts/cmake/vcpkg_execute_required_process.cmake