diff options
Diffstat (limited to 'vcpkg/scripts/cmake/vcpkg_apply_patches.cmake')
| -rw-r--r-- | vcpkg/scripts/cmake/vcpkg_apply_patches.cmake | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/vcpkg/scripts/cmake/vcpkg_apply_patches.cmake b/vcpkg/scripts/cmake/vcpkg_apply_patches.cmake new file mode 100644 index 0000000..1a3756e --- /dev/null +++ b/vcpkg/scripts/cmake/vcpkg_apply_patches.cmake @@ -0,0 +1,17 @@ +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() |