2021-05-10 01:47:21 +08:00
|
|
|
# DEPRECATED: in favor of the `PATCHES` argument to [`vcpkg_from_github()`](vcpkg_from_github.md) et al.
|
2021-03-01 05:17:19 +08:00
|
|
|
|
2020-12-02 05:37:26 +08:00
|
|
|
#[===[.md
|
|
|
|
# vcpkg_apply_patches
|
|
|
|
|
2021-03-01 05:17:19 +08:00
|
|
|
Apply a set of patches to a source tree.
|
2020-12-02 05:37:26 +08:00
|
|
|
|
|
|
|
```cmake
|
|
|
|
vcpkg_apply_patches(
|
|
|
|
SOURCE_PATH <${SOURCE_PATH}>
|
|
|
|
[QUIET]
|
|
|
|
PATCHES <patch1.patch>...
|
|
|
|
)
|
|
|
|
```
|
|
|
|
#]===]
|
2020-09-10 01:36:58 +08:00
|
|
|
|
2016-09-19 11:50:08 +08:00
|
|
|
function(vcpkg_apply_patches)
|
2021-03-01 05:17:19 +08:00
|
|
|
z_vcpkg_deprecation_message("vcpkg_apply_patches has been deprecated in favor of the `PATCHES` argument to `vcpkg_from_*`.")
|
2016-11-03 07:49:15 +08:00
|
|
|
|
2021-03-01 05:17:19 +08:00
|
|
|
cmake_parse_arguments(PARSE_ARGV 0 "arg" "QUIET" "SOURCE_PATH" "PATCHES")
|
2016-10-19 07:17:47 +08:00
|
|
|
|
2021-03-01 05:17:19 +08:00
|
|
|
if(arg_QUIET)
|
|
|
|
set(quiet "QUIET")
|
2020-12-01 01:50:42 +08:00
|
|
|
else()
|
2021-03-01 05:17:19 +08:00
|
|
|
set(quiet)
|
2020-12-01 01:50:42 +08:00
|
|
|
endif()
|
2021-03-01 05:17:19 +08:00
|
|
|
|
|
|
|
z_vcpkg_apply_patches(
|
|
|
|
SOURCE_PATH "${arg_SOURCE_PATH}"
|
|
|
|
${quiet}
|
|
|
|
PATCHES ${arg_PATCHES}
|
|
|
|
)
|
2016-09-19 11:50:08 +08:00
|
|
|
endfunction()
|