Execute a process with logging and fail the build if the command fails.
vcpkg_execute_required_process(
COMMAND <${PERL}> [<arguments>...]
WORKING_DIRECTORY <${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg>
LOGNAME <build-${TARGET_TRIPLET}-dbg>
)
The command to be executed, along with its arguments.
The directory to execute the command in.
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.