[poppler] CMakeLists.txt

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Dec 2 17:59:45 UTC 2020


 CMakeLists.txt |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 66a65f996f1f407e95643cf5ddc8818b8ea93c40
Author: Albert Astals Cid <aacid at kde.org>
Date:   Wed Dec 2 18:51:02 2020 +0100

    cmake: Use the imported target for boost includes

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 307b26e8..37a7322e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -181,7 +181,6 @@ macro_optional_find_package(Cairo ${CAIRO_VERSION})
 if(ENABLE_SPLASH)
   find_package(Boost 1.58.0)
   if(Boost_FOUND)
-    include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
     set(USE_BOOST_HEADERS ON)
   endif()
 endif()
@@ -525,6 +524,9 @@ endif()
 if(TIFF_FOUND)
   set(poppler_LIBS ${poppler_LIBS} TIFF::TIFF)
 endif()
+if(Boost_FOUND)
+  set(poppler_LIBS ${poppler_LIBS} Boost::boost)
+endif()
 
 if (GPERF AND RUN_GPERF_IF_PRESENT)
     macro(ADD_GPERF_FILE input)


More information about the poppler mailing list