change from mordante to make notifications work...

...in the cmake recipe as fribidi does:

if notifications are active (they by default now) check if required
stuff is available, warn if things are not there and don't compile
support it, compile things in if everything is there
This commit is contained in:
Nils Kneuper 2010-03-03 23:08:31 +00:00
parent 3cd9a85fd8
commit 2bcb81afbc

View file

@ -205,8 +205,12 @@ if(ENABLE_GAME)
endif()
if(ENABLE_NOTIFICATIONS)
pkg_check_modules(LIBDBUS REQUIRED dbus-1)
add_definitions(-DHAVE_LIBDBUS)
pkg_check_modules(LIBDBUS dbus-1)
if(LIBDBUS_FOUND)
add_definitions(-DHAVE_LIBDBUS)
else(LIBDBUS_FOUND)
message("Could not find dbus-1, Disabling notification support.")
endif(LIBDBUS_FOUND)
endif(ENABLE_NOTIFICATIONS)
endif(ENABLE_GAME)