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.
|
|
|
|
#]===]
|
|
|
|
|
2021-02-17 03:41:36 +08:00
|
|
|
if (NOT DEFINED Z_VCPKG_OVERRIDEN_EXECUTE_PROCESS)
|
|
|
|
set(Z_VCPKG_OVERRIDEN_EXECUTE_PROCESS ON)
|
2019-08-29 04:49:29 +08:00
|
|
|
|
|
|
|
if (DEFINED VCPKG_DOWNLOAD_MODE)
|
2021-02-17 03:41:36 +08:00
|
|
|
function(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")
|
2021-02-17 03:41:36 +08:00
|
|
|
endfunction()
|
2019-08-29 04:49:29 +08:00
|
|
|
endif()
|
2020-11-21 02:29:25 +08:00
|
|
|
endif()
|