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.
|
|
|
|
#]===]
|
|
|
|
|
2021-02-16 11:41:36 -08:00
|
|
|
if (NOT DEFINED Z_VCPKG_OVERRIDEN_EXECUTE_PROCESS)
|
|
|
|
set(Z_VCPKG_OVERRIDEN_EXECUTE_PROCESS ON)
|
2019-08-28 13:49:29 -07:00
|
|
|
|
|
|
|
if (DEFINED VCPKG_DOWNLOAD_MODE)
|
2021-02-16 11:41:36 -08:00
|
|
|
function(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")
|
2021-02-16 11:41:36 -08:00
|
|
|
endfunction()
|
2021-07-14 14:45:18 -05:00
|
|
|
set(Z_VCPKG_EXECUTE_PROCESS_NAME "_execute_process")
|
|
|
|
else()
|
|
|
|
set(Z_VCPKG_EXECUTE_PROCESS_NAME "execute_process")
|
2019-08-28 13:49:29 -07:00
|
|
|
endif()
|
2020-11-20 10:29:25 -08:00
|
|
|
endif()
|