summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2017-09-05 19:34:12 +0200
committerAlbert Astals Cid <aacid@kde.org>2017-09-05 19:34:55 +0200
commit101aba9a8d6623bca419946262fea6b46a790454 (patch)
tree5396f8a6d66077ae087f0ef4adf3254748c6808e /test
parent1d3f00e8c53dbbd3a8409993b7b66667df434b5d (diff)
cmake: Fix build when using a cairo different than the system one
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
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 ()