mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 08:39:01 +08:00
Use macro instead of function to override execute_process() (#7980)
This commit is contained in:
parent
9d0fae31d7
commit
9e68729bb6
@ -9,12 +9,12 @@ if (NOT DEFINED OVERRIDEN_EXECUTE_PROCESS)
|
||||
set(OVERRIDEN_EXECUTE_PROCESS ON)
|
||||
|
||||
if (DEFINED VCPKG_DOWNLOAD_MODE)
|
||||
function(execute_process)
|
||||
macro(execute_process)
|
||||
message(FATAL_ERROR "This command cannot be executed in Download Mode.\nHalting portfile execution.\n")
|
||||
endfunction()
|
||||
endmacro()
|
||||
else()
|
||||
function(execute_process)
|
||||
macro(execute_process)
|
||||
_execute_process(${ARGV})
|
||||
endfunction()
|
||||
endmacro()
|
||||
endif()
|
||||
endif()
|
Loading…
Reference in New Issue
Block a user