From 3a757324884d1d6f89aa2c6f106fc22b99570df4 Mon Sep 17 00:00:00 2001 From: James Turner Date: Wed, 21 Sep 2011 18:00:57 +0100 Subject: [PATCH] If DBus is not found, disable event-input on Linux. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index eb74dd462..e1a6dcc7c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -134,6 +134,11 @@ if(EVENT_INPUT) elseif(CMAKE_SYSTEM_NAME MATCHES "Linux") find_package(DBus) + if(NOT DBUS_FOUND) + message(WARNING "DBus not found, event input will be disabled") + set(EVENT_INPUT 0) + endif() + else() message(WARNING "event input is not supported on this platform yet") endif()