From bbcbb34fec10c90edd5960bdbcc6849bc8f39526 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Sun, 7 Mar 2010 17:34:40 +0100 Subject: [CMake] set POPPLER_GLIB_DISABLE_DEPRECATED and POPPLER_GLIB_DISABLE_SINGLE_INCLUDES as done with autotools --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index e1aaf3e4..0a2b539f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -85,14 +85,20 @@ if(CAIRO_FOUND) set(HAVE_CAIRO ${CAIRO_FOUND}) set(CAIRO_FEATURE "#define POPPLER_HAS_CAIRO 1") set(CAIRO_REQ "cairo") + set(POPPLER_GLIB_DISABLE_DEPRECATED "") + set(POPPLER_GLIB_DISABLE_SINGLE_INCLUDES "") macro_optional_find_package(GTK) if(GLIB_FOUND) set(ENABLE_GLIB ON) set(GLIB_REQ "glib-2.0 >= ${GLIB_VERSION} gobject-2.0 >= ${GLIB_VERSION} cairo >= ${CAIRO_VERSION}") + set(POPPLER_GLIB_DISABLE_DEPRECATED "${POPPLER_GLIB_DISABLE_DEPRECATED} -DG_DISABLE_DEPRECATED") + set(POPPLER_GLIB_DISABLE_SINGLE_INCLUDES "${POPPLER_GLIB_DISABLE_SINGLE_INCLUDES} -DG_DISABLE_SINGLE_INCLUDES") 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") + set(POPPLER_GLIB_DISABLE_DEPRECATED "${POPPLER_GLIB_DISABLE_DEPRECATED} -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED") + set(POPPLER_GLIB_DISABLE_SINGLE_INCLUDES "${POPPLER_GLIB_DISABLE_SINGLE_INCLUDES} -DGTK_DISABLE_SINGLE_INCLUDES") endif(GDK_FOUND) endif(GLIB_FOUND) else(CAIRO_FOUND) -- cgit v1.2.3