mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 03:34:26 +08:00
65d4bc146b
* [portfile functions] Override execute_process() to accept ALLOW_IN_DOWNLOAD_MODE option * [vcpkg install] Set VCPKG_DOWNLOAD_MODE when using --only-downloads option * [vcpkg_find_acquire_program] Allow in Download Mode * Don't stop when build fails for a package * Download sources for all packages in dependency graph * Improve output messages * Enable acquiring MSYS packages in download mode * Documentation * Update documentation * execute_process() always fails on Download Mode * Regenerate docs and fix formatting * Run clang-format * Use _execute_process on vcpkg_from_<source> helpers
19 lines
483 B
CMake
19 lines
483 B
CMake
## # execute_process
|
|
##
|
|
## Intercepts all calls to execute_process() inside portfiles and fails when Download Mode
|
|
## is enabled.
|
|
##
|
|
## In order to execute a process in Download Mode call `_execute_process()` instead.
|
|
##
|
|
if (NOT DEFINED OVERRIDEN_EXECUTE_PROCESS)
|
|
set(OVERRIDEN_EXECUTE_PROCESS ON)
|
|
|
|
function(execute_process)
|
|
message(FATAL_ERROR
|
|
[[
|
|
This command cannot be executed in Download Mode.
|
|
Halting portfile execution.
|
|
]])
|
|
endfunction()
|
|
|
|
endif() |