diff options
Diffstat (limited to 'dev-cpp/cpp-httplib/files/cpp-httplib-0.20.0-zstd2.patch')
| -rw-r--r-- | dev-cpp/cpp-httplib/files/cpp-httplib-0.20.0-zstd2.patch | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/dev-cpp/cpp-httplib/files/cpp-httplib-0.20.0-zstd2.patch b/dev-cpp/cpp-httplib/files/cpp-httplib-0.20.0-zstd2.patch deleted file mode 100644 index 73f33e64268f..000000000000 --- a/dev-cpp/cpp-httplib/files/cpp-httplib-0.20.0-zstd2.patch +++ /dev/null @@ -1,32 +0,0 @@ -https://bugs.gentoo.org/953066 -https://github.com/yhirose/cpp-httplib/pull/2126 - ---- a/cmake/httplibConfig.cmake.in -+++ b/cmake/httplibConfig.cmake.in -@@ -39,7 +39,25 @@ if(@HTTPLIB_IS_USING_BROTLI@) - endif() - - if(@HTTPLIB_IS_USING_ZSTD@) -- find_dependency(zstd) -+ set(httplib_fd_zstd_quiet_arg) -+ if(${CMAKE_FIND_PACKAGE_NAME}_FIND_QUIETLY) -+ set(httplib_fd_zstd_quiet_arg QUIET) -+ endif() -+ set(httplib_fd_zstd_required_arg) -+ if(${CMAKE_FIND_PACKAGE_NAME}_FIND_REQUIRED) -+ set(httplib_fd_zstd_required_arg REQUIRED) -+ endif() -+ find_package(zstd QUIET) -+ if(NOT zstd_FOUND) -+ find_package(PkgConfig ${httplib_fd_zstd_quiet_arg} ${httplib_fd_zstd_required_arg}) -+ if(PKG_CONFIG_FOUND) -+ pkg_check_modules(zstd ${httplib_fd_zstd_quiet_arg} ${httplib_fd_zstd_required_arg} IMPORTED_TARGET libzstd) -+ -+ if(TARGET PkgConfig::zstd) -+ add_library(zstd::libzstd ALIAS PkgConfig::zstd) -+ endif() -+ endif() -+ endif() - set(httplib_zstd_FOUND ${zstd_FOUND}) - endif() - |
