aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorVictor Romero <romerosanchezv@gmail.com>2019-08-29 19:40:43 -0700
committerGitHub <noreply@github.com>2019-08-29 19:40:43 -0700
commit9e68729bb6b62537314c7ab315c2dcf6dc2476b0 (patch)
tree52d9925e90b0cf84f3a16d0e5126a93f22c83187 /scripts
parent9d0fae31d7ca05e8e2062a2b15396405c71507dc (diff)
downloadvcpkg-9e68729bb6b62537314c7ab315c2dcf6dc2476b0.tar.gz
vcpkg-9e68729bb6b62537314c7ab315c2dcf6dc2476b0.zip
Use macro instead of function to override execute_process() (#7980)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/cmake/execute_process.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/cmake/execute_process.cmake b/scripts/cmake/execute_process.cmake
index 6d9bd6cfc..51f6ad160 100644
--- a/scripts/cmake/execute_process.cmake
+++ b/scripts/cmake/execute_process.cmake
@@ -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() \ No newline at end of file