[poppler] CMakeLists.txt

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


 CMakeLists.txt |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 1d83bd32487fc645b7c6dba132764448eb4b0272
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sun Aug 2 20:12:28 2020 +0200

    cmake: Modern way to link against libpng

diff --git a/CMakeLists.txt b/CMakeLists.txt
index f9157312..4bfab2cf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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})


More information about the poppler mailing list