From 16326b24799f1f0eaca3415e4ff5b92e36653dec Mon Sep 17 00:00:00 2001 From: Urs Fleisch Date: Sun, 12 Nov 2023 15:58:48 +0100 Subject: [PATCH] Restore ZLIB_LIBRARIES_FLAGS, used for .pc files --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0ca2f2ea..593511f5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -106,6 +106,9 @@ option(WITH_ZLIB "Build with ZLIB" ON) if(WITH_ZLIB) find_package("ZLIB") set(HAVE_ZLIB ${ZLIB_FOUND}) + if(ZLIB_FOUND) + set(ZLIB_LIBRARIES_FLAGS -lz) + endif() endif() if(NOT WIN32)