mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-23 04:00:25 +08:00
f44d4c169f
* [docs] link to new functions in deprecated warnings * [docs] add deprecation messages to portfile-functions.md * [docs] also update documentation in .cmake files * [docs] introduce new directive DEPRECATED BY in the documentation generation script and use that directive * Trigger Build * Trigger Build * Trigger Build
34 lines
763 B
CMake
34 lines
763 B
CMake
# DEPRECATED: in favor of the `PATCHES` argument to [`vcpkg_from_github()`](vcpkg_from_github.md) et al.
|
|
|
|
#[===[.md
|
|
# vcpkg_apply_patches
|
|
|
|
Apply a set of patches to a source tree.
|
|
|
|
```cmake
|
|
vcpkg_apply_patches(
|
|
SOURCE_PATH <${SOURCE_PATH}>
|
|
[QUIET]
|
|
PATCHES <patch1.patch>...
|
|
)
|
|
```
|
|
#]===]
|
|
|
|
function(vcpkg_apply_patches)
|
|
z_vcpkg_deprecation_message("vcpkg_apply_patches has been deprecated in favor of the `PATCHES` argument to `vcpkg_from_*`.")
|
|
|
|
cmake_parse_arguments(PARSE_ARGV 0 "arg" "QUIET" "SOURCE_PATH" "PATCHES")
|
|
|
|
if(arg_QUIET)
|
|
set(quiet "QUIET")
|
|
else()
|
|
set(quiet)
|
|
endif()
|
|
|
|
z_vcpkg_apply_patches(
|
|
SOURCE_PATH "${arg_SOURCE_PATH}"
|
|
${quiet}
|
|
PATCHES ${arg_PATCHES}
|
|
)
|
|
endfunction()
|