aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/scripts/cmake/vcpkg_apply_patches.cmake
blob: 1a3756ec58f948f60d93f3694ec9ae1bb95a7f52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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()