]> git.mxchange.org Git - flightgear.git/commitdiff
If DBus is not found, disable event-input on Linux.
authorJames Turner <zakalawe@mac.com>
Wed, 21 Sep 2011 17:00:57 +0000 (18:00 +0100)
committerJames Turner <zakalawe@mac.com>
Wed, 21 Sep 2011 17:00:57 +0000 (18:00 +0100)
CMakeLists.txt

index eb74dd46267a91022ab817bccdba3cd12c59301c..e1a6dcc7cc62b45ebf13b87dbc331e415a93823b 100644 (file)
@@ -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()