Commit efdffba4 authored by Pino Toscano's avatar Pino Toscano

[CMake] align the GDK stuff (GDK_{FEATURE,REQ}) to what done with autotools

parent cfecc69b
......@@ -86,7 +86,11 @@ if(CAIRO_FOUND)
set(CAIRO_REQ "cairo")
macro_optional_find_package(GTK)
if(GLIB_FOUND)
set(POPPLER_WITH_GDK ${GDK_FOUND})
if(GDK_FOUND)
set(GDK_REQ "gdk-2.0 gdk-pixbuf-2.0")
set(POPPLER_WITH_GDK ${GDK_FOUND})
set(GDK_FEATURE "#define POPPLER_WITH_GDK 1")
endif(GDK_FOUND)
endif(GLIB_FOUND)
else(CAIRO_FOUND)
set(CAIRO_FEATURE "#undef POPPLER_HAS_CAIRO")
......
......@@ -6,7 +6,7 @@ includedir=${prefix}/include
Name: poppler-glib
Description: GLib wrapper for poppler
Version: @POPPLER_VERSION@
Requires: poppler-cairo = @POPPLER_VERSION@ gobject-2.0 gdk-2.0 gdk-pixbuf-2.0
Requires: poppler-cairo = @POPPLER_VERSION@ gobject-2.0 @GDK_REQ@
@PC_REQUIRES_PRIVATE@
Libs: -L${libdir} -lpoppler-glib
......
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