From: James Turner Date: Wed, 21 Sep 2011 17:00:57 +0000 (+0100) Subject: If DBus is not found, disable event-input on Linux. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3a757324884d1d6f89aa2c6f106fc22b99570df4;p=flightgear.git If DBus is not found, disable event-input on Linux. --- 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()