Fix compilation with notifications disabled.

In CMake the notifications are enabled by default, switching them to
disabled didn't clear the LIBDBUS_FOUND flag properly causing the
the compilation to fail due to the #error in
src/desktop/dbus_notification.cpp.
This commit is contained in:
Mark de Wever 2014-11-23 14:22:37 +01:00
parent e3b17ffe47
commit 5a30942c5e

View file

@ -593,7 +593,9 @@ if(ENABLE_GAME)
else(LIBDBUS_FOUND)
message("Could not find dbus-1, Disabling notification support.")
endif(LIBDBUS_FOUND)
endif(ENABLE_NOTIFICATIONS)
else()
unset(LIBDBUS_FOUND CACHE)
endif()
if(ENABLE_BOOST_FILESYSTEM AND NOT ENABLE_PANDORA)
find_package( Boost 1.44 REQUIRED COMPONENTS filesystem )