From c6883e684723de86f60f544b7c4073c2c80c8dae Mon Sep 17 00:00:00 2001 From: Dirk Farin Date: Thu, 14 Dec 2023 16:41:10 +0100 Subject: [PATCH] pkgconfig: add zlib to Requires.private if compiled with DEFLATE_HEADER_COMPRESSION (fixes #1057) --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index fbfd99e79a..d490b0aaa7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -259,6 +259,10 @@ endif() if (LIBSHARPYUV_FOUND) list(APPEND REQUIRES_PRIVATE "libsharpyuv") endif() +if (WITH_DEFLATE_HEADER_COMPRESSION) + list(APPEND REQUIRES_PRIVATE "zlib") +endif() + list(JOIN REQUIRES_PRIVATE " " REQUIRES_PRIVATE) include(CheckCXXSymbolExists)