2020-12-01 13: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-28 13:49:29 -07:00
|
|
|
if (NOT DEFINED OVERRIDEN_EXECUTE_PROCESS)
|
|
|
|
set(OVERRIDEN_EXECUTE_PROCESS ON)
|
|
|
|
|
|
|
|
if (DEFINED VCPKG_DOWNLOAD_MODE)
|
2019-08-29 19:40:43 -07:00
|
|
|
macro(execute_process)
|
2019-08-28 13:49:29 -07:00
|
|
|
message(FATAL_ERROR "This command cannot be executed in Download Mode.\nHalting portfile execution.\n")
|
2019-08-29 19:40:43 -07:00
|
|
|
endmacro()
|
2019-08-28 13:49:29 -07:00
|
|
|
endif()
|
2020-11-20 10:29:25 -08:00
|
|
|
endif()
|