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()
|