2019-08-28 13:49:29 -07:00
|
|
|
## # 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)
|
|
|
|
|
|
|
|
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
|
|
|
else()
|
2019-08-29 19:40:43 -07:00
|
|
|
macro(execute_process)
|
2019-08-28 13:49:29 -07:00
|
|
|
_execute_process(${ARGV})
|
2019-08-29 19:40:43 -07:00
|
|
|
endmacro()
|
2019-08-28 13:49:29 -07:00
|
|
|
endif()
|
|
|
|
endif()
|