diff --git a/CMakeLists.txt b/CMakeLists.txt index a4bf351b0..459eeb04b 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") diff --git a/swaybar/CMakeLists.txt b/swaybar/CMakeLists.txt index 373719de4..48ededddb 100644 --- a/swaybar/CMakeLists.txt +++ b/swaybar/CMakeLists.txt @@ -7,7 +7,7 @@ include_directories( ${XKBCOMMON_INCLUDE_DIRS} ${DBUS_INCLUDE_DIRS} ) -if (enable-tray) +if (ENABLE_TRAY) file(GLOB tray tray/*.c )