Commit bc5edcfb authored by Albert Astals Cid's avatar Albert Astals Cid

cmake: Modern way to link against zlib

parent 1d83bd32
Pipeline #185280 passed with stage
in 4 minutes and 33 seconds
......@@ -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}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment