2020-12-02 05:37:26 +08:00
|
|
|
#[===[.md:
|
|
|
|
# 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 `vcpkg_execute_in_download_mode()` instead.
|
|
|
|
#]===]
|
|
|
|
|
2019-08-29 04:49:29 +08:00
|
|
|
if (NOT DEFINED OVERRIDEN_EXECUTE_PROCESS)
|
|
|
|
set(OVERRIDEN_EXECUTE_PROCESS ON)
|
|
|
|
|
|
|
|
if (DEFINED VCPKG_DOWNLOAD_MODE)
|
2019-08-30 10:40:43 +08:00
|
|
|
macro(execute_process)
|
2019-08-29 04:49:29 +08:00
|
|
|
message(FATAL_ERROR "This command cannot be executed in Download Mode.\nHalting portfile execution.\n")
|
2019-08-30 10:40:43 +08:00
|
|
|
endmacro()
|
2019-08-29 04:49:29 +08:00
|
|
|
endif()
|
2020-11-21 02:29:25 +08:00
|
|
|
endif()
|