[poppler] glib/demo test/CMakeLists.txt

Albert Astals Cid aacid at kemper.freedesktop.org
Tue Sep 5 17:35:00 UTC 2017


 glib/demo/CMakeLists.txt |    2 +-
 test/CMakeLists.txt      |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 101aba9a8d6623bca419946262fea6b46a790454
Author: Albert Astals Cid <aacid at kde.org>
Date:   Tue Sep 5 19:34:12 2017 +0200

    cmake: Fix build when using a cairo different than the system one

diff --git a/glib/demo/CMakeLists.txt b/glib/demo/CMakeLists.txt
index 465021ae..8ccbb449 100644
--- a/glib/demo/CMakeLists.txt
+++ b/glib/demo/CMakeLists.txt
@@ -26,4 +26,4 @@ set(poppler_glib_demo_SRCS
   taggedstruct.c
 )
 poppler_add_test(poppler-glib-demo BUILD_GTK_TESTS ${poppler_glib_demo_SRCS})
-target_link_libraries(poppler-glib-demo poppler-glib ${GTK3_LIBRARIES})
+target_link_libraries(poppler-glib-demo ${CAIRO_LIBRARIES} poppler-glib ${GTK3_LIBRARIES})
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 0d8aa44d..5bae1c7b 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -28,7 +28,7 @@ if (GTK_FOUND)
     gtk-test.cc
   )
   poppler_add_test(gtk-test BUILD_GTK_TESTS ${gtk_splash_test_SRCS})
-  target_link_libraries(gtk-test poppler-glib ${GTK3_LIBRARIES})
+  target_link_libraries(gtk-test ${CAIRO_LIBRARIES} poppler-glib ${GTK3_LIBRARIES})
 
   if (HAVE_CAIRO)
 
@@ -36,7 +36,7 @@ if (GTK_FOUND)
       pdf-inspector.cc
     )
     poppler_add_test(pdf-inspector BUILD_GTK_TESTS ${pdf_inspector_SRCS})
-    target_link_libraries(pdf-inspector poppler-glib ${GTK3_LIBRARIES})
+    target_link_libraries(pdf-inspector ${CAIRO_LIBRARIES} poppler-glib ${GTK3_LIBRARIES})
 
   endif ()
 


More information about the poppler mailing list