If DBus is not found, disable event-input on Linux.
This commit is contained in:
parent
5a17ccf9eb
commit
3a75732488
1 changed files with 5 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue