[poppler] CMakeLists.txt

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun Aug 2 18:24:42 UTC 2020


 CMakeLists.txt |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

New commits:
commit bc5edcfba6ae88e989892f5d24c69d8ed719ab78
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sun Aug 2 20:19:19 2020 +0200

    cmake: Modern way to link against zlib

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4bfab2cf..68c00149 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -272,10 +272,6 @@ include_directories(
   ${FREETYPE_INCLUDE_DIRS}
 )
 
-if(ENABLE_ZLIB)
-  include_directories(SYSTEM ${ZLIB_INCLUDE_DIR})
-endif()
-
 if (NSS3_FOUND)
   set(ENABLE_NSS3 ON)
 endif()
@@ -455,7 +451,7 @@ if(ENABLE_ZLIB)
   set(poppler_SRCS ${poppler_SRCS}
     poppler/FlateEncoder.cc
   )
-  set(poppler_LIBS ${poppler_LIBS} ${ZLIB_LIBRARIES})
+  set(poppler_LIBS ${poppler_LIBS} ZLIB::ZLIB)
 endif()
 if(ENABLE_ZLIB_UNCOMPRESS)
   set(poppler_SRCS ${poppler_SRCS}


More information about the poppler mailing list