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