From 533dee543f2b0496ab88da531051c4c9a7252636 Mon Sep 17 00:00:00 2001 From: MATSUU Takuto Date: Sat, 9 Aug 2008 09:55:01 +0200 Subject: [PATCH] build: fix gdkpixbuf dependency Signed-off-by: Julien Danjou --- awesomeConfig.cmake | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/awesomeConfig.cmake b/awesomeConfig.cmake index 7d4ed4529..f1546052c 100644 --- a/awesomeConfig.cmake +++ b/awesomeConfig.cmake @@ -130,8 +130,6 @@ pkg_check_modules(AWESOME_REQUIRED REQUIRED glib-2.0 cairo pango - gdk-2.0>=2.2 - gdk-pixbuf-2.0>=2.2 xcb xcb-event xcb-randr @@ -214,6 +212,18 @@ if(WITH_IMLIB2) message(STATUS "Imlib2 not found. Disabled.") endif() endif() + +if(NOT WITH_IMLIB2) + pkg_check_modules(GDK_PIXBUF REQUIRED gdk-2.0>=2.2 gdk-pixbuf-2.0>=2.2) + if(GDK_PIXBUF_FOUND) + set(AWESOME_OPTIONAL_LIBRARIES ${AWESOME_OPTIONAL_LIBRARIES} + ${GDK_PIXBUF_LIBRARIES}) + set(AWESOME_OPTIONAL_INCLUDE_DIRS ${AWESOME_OPTIONAL_INCLUDE_DIRS} + ${GDK_PIXBUF_INCLUDE_DIRS}) + else() + message(FATAL_ERROR "GdkPixBuf not found.") + endif() +endif() # }}} # {{{ Install path and configuration variables