Fix zstd detection in installed httplibConfig.cmake (#2453)

This commit is contained in:
sakurai-ryuhei
2026-05-24 00:59:58 +09:00
committed by GitHub
parent 1ff0c8588d
commit 0d7d637466

View File

@@ -61,7 +61,7 @@ if(@HTTPLIB_IS_USING_ZSTD@)
if(${CMAKE_FIND_PACKAGE_NAME}_FIND_REQUIRED) if(${CMAKE_FIND_PACKAGE_NAME}_FIND_REQUIRED)
set(httplib_fd_zstd_required_arg REQUIRED) set(httplib_fd_zstd_required_arg REQUIRED)
endif() endif()
find_package(zstd QUIET) find_package(zstd 1.5.6 CONFIG QUIET)
if(NOT zstd_FOUND) if(NOT zstd_FOUND)
find_package(PkgConfig ${httplib_fd_zstd_quiet_arg} ${httplib_fd_zstd_required_arg}) find_package(PkgConfig ${httplib_fd_zstd_quiet_arg} ${httplib_fd_zstd_required_arg})
if(PKG_CONFIG_FOUND) if(PKG_CONFIG_FOUND)