aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2017-07-20 22:14:32 +0200
committerFurkan Sahin <furkan-dev@proton.me>2017-07-20 22:14:32 +0200
commitb4afaf33bfa5a5ba12607acaf351fe946df3d964 (patch)
treef069574851afa50bff3d8edeabe8f9790352faab /CMakeLists.txt
parentd252ebc68dae50328d4fbbaa86da9bd60ea2e4fc (diff)
[swaybar] fix non-dbus build
Swaybar's CMakeLists.txt uses the enable-tray option directly to decide whether to build the tray. This leads to a compilation error if dbus is not installed. This patch uses the ENABLE_TRAY variable instead, which is only true if the user enabled the tray *and* dbus is available.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a4bf351b..459eeb04 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -95,7 +95,7 @@ endif()
if (enable-tray)
if (DBUS_FOUND)
- set(ENABLE_TRAY)
+ set(ENABLE_TRAY TRUE)
add_definitions(-DENABLE_TRAY)
else()
message(WARNING "Tray required but DBus was not found. Tray will not be included")