Disable D-Bus notifications by default under MacOS

This commit is contained in:
Martchus 2017-08-06 00:39:30 +02:00
parent 3e72eadc00
commit 64040170b4
1 changed files with 6 additions and 1 deletions

View File

@ -149,7 +149,12 @@ else()
endif()
# configure support for D-Bus notifications
option(DBUS_NOTIFICATIONS "enables support for D-Bus notifications" ${UNIX})
if(UNIX AND NOT APPLE)
set(ENABLE_DBUS_NOTIFICATIONS_BY_DEFAULT ON)
else()
set(ENABLE_DBUS_NOTIFICATIONS_BY_DEFAULT OFF)
endif()
option(DBUS_NOTIFICATIONS "enables support for D-Bus notifications" ${ENABLE_DBUS_NOTIFICATIONS_BY_DEFAULT})
set(DBUS_NOTIFICATIONS_FILE_NAME misc/dbusnotification)
if(DBUS_NOTIFICATIONS)
list(APPEND HEADER_FILES