summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2020-08-02 20:19:19 +0200
committerAlbert Astals Cid <aacid@kde.org>2020-08-02 20:19:19 +0200
commitbc5edcfba6ae88e989892f5d24c69d8ed719ab78 (patch)
tree78e08d939e47112394611af8cd25018038001b8e
parent1d83bd32487fc645b7c6dba132764448eb4b0272 (diff)
cmake: Modern way to link against zlib
-rw-r--r--CMakeLists.txt6
1 files changed, 1 insertions, 5 deletions
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}