mirror of
https://github.com/cemu-project/vcpkg.git
synced 2024-11-23 19:29:49 +00: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