mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 08:57:11 +08:00
d369df7ecf
* [rollup:2021-07-06 1/8] PR #18272 (@strega-nil) [scripts-audit] vcpkg_from_* * [rollup:2021-07-06 2/8] PR #18319 (@strega-nil) [scripts-audit] add guidelines for cmake * [rollup 2021-07-06 3/8] PR #18410 (@mheyman) [vcpkg-cmake-config] documentation fix * [rollup:2021-07-06 4/8] PR #18488 (@strega-nil) [scripts-audit] vcpkg_execute_* * [rollup:2021-07-06 5/8] PR #18517 (@strega-nil) [scripts-audit] vcpkg_extract_source_archive * [rollup:2021-07-06 6/8] PR #18674 (@NancyLi1013) [vcpkg doc] Update examples * [rollup:2021-07-06 7/8] PR #18695 (@JackBoosY) [vcpkg] Update the minimum version of vcpkg * [rollup:2021-07-06 8/8] PR #18758 (@ras0219-msft) [vcpkg_from_git] Fix error if downloads folder does not exist * build docs! * fix bond:*-windows * fix nmap Co-authored-by: nicole mazzuca <mazzucan@outlook.com> Co-authored-by: Michael Heyman <Michael.Heyman@jhuapl.edu> Co-authored-by: NancyLi1013 <lirui09@beyondsoft.com> Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Robert Schumacher <ras0219@outlook.com>
22 lines
685 B
CMake
22 lines
685 B
CMake
#[===[.md:
|
|
# 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 `vcpkg_execute_in_download_mode()` instead.
|
|
#]===]
|
|
|
|
if (NOT DEFINED Z_VCPKG_OVERRIDEN_EXECUTE_PROCESS)
|
|
set(Z_VCPKG_OVERRIDEN_EXECUTE_PROCESS ON)
|
|
|
|
if (DEFINED VCPKG_DOWNLOAD_MODE)
|
|
function(execute_process)
|
|
message(FATAL_ERROR "This command cannot be executed in Download Mode.\nHalting portfile execution.\n")
|
|
endfunction()
|
|
set(Z_VCPKG_EXECUTE_PROCESS_NAME "_execute_process")
|
|
else()
|
|
set(Z_VCPKG_EXECUTE_PROCESS_NAME "execute_process")
|
|
endif()
|
|
endif()
|