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