Commit 1d83bd32 authored by Albert Astals Cid's avatar Albert Astals Cid

cmake: Modern way to link against libpng

parent 175370fd
Pipeline #185275 passed with stage
in 3 minutes and 22 seconds
......@@ -283,7 +283,6 @@ if(JPEG_FOUND)
include_directories(SYSTEM ${JPEG_INCLUDE_DIR})
endif()
if(PNG_FOUND)
include_directories(SYSTEM ${PNG_INCLUDE_DIR})
set(ENABLE_LIBPNG ON)
endif()
if(TIFF_FOUND)
......@@ -505,7 +504,7 @@ if(WIN32)
set(poppler_LIBS ${poppler_LIBS} gdi32)
endif()
if(PNG_FOUND)
set(poppler_LIBS ${poppler_LIBS} ${PNG_LIBRARIES})
set(poppler_LIBS ${poppler_LIBS} PNG::PNG)
endif()
if(TIFF_FOUND)
set(poppler_LIBS ${poppler_LIBS} ${TIFF_LIBRARIES})
......
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