Use macro instead of function to override execute_process() (#7980)

This commit is contained in:
Victor Romero 2019-08-29 19:40:43 -07:00 committed by GitHub
parent 9d0fae31d7
commit 9e68729bb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()