mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-06-10 08:37:15 +00:00
Fix zstd detection in installed httplibConfig.cmake (#2453)
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user