From f17aef943c52823702273c2f956dccb565e5327a Mon Sep 17 00:00:00 2001 From: Mihir Lad Date: Sat, 25 Jul 2020 22:38:02 -0400 Subject: [PATCH] src/CMakeLists.txt: Remove dwm.cpp if dwm disabled --- CMakeLists.txt | 2 +- src/CMakeLists.txt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e3b50158..7b6d8d5c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -98,7 +98,7 @@ endif() if(NOT ENABLE_I3) string(REPLACE " i3" "" MODULES_LEFT ${MODULES_LEFT}) endif() -if (NOT ENABLE_DWM) +if(NOT ENABLE_DWM) string(REPLACE " dwm" "" MODULES_LEFT ${MODULES_LEFT}) endif() if(NOT ENABLE_MPD) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 342e2e53..11e2dad3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -23,6 +23,9 @@ if(NOT ENABLE_CURL) list(REMOVE_ITEM files modules/github.cpp) list(REMOVE_ITEM files utils/http.cpp) endif() +if(NOT ENABLE_DWM) + list(REMOVE_ITEM files modules/dwm.cpp) +endif() if(NOT ENABLE_MPD) list(REMOVE_ITEM files modules/mpd.cpp) list(REMOVE_ITEM files adapters/mpd.cpp)