From 64040170b460950c057ecffb10510426f4fb1694 Mon Sep 17 00:00:00 2001 From: Martchus Date: Sun, 6 Aug 2017 00:39:30 +0200 Subject: [PATCH] Disable D-Bus notifications by default under MacOS --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e1f89ce..30aae23 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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