src/CMakeLists.txt: Remove dwm.cpp if dwm disabled

This commit is contained in:
Mihir Lad 2020-07-25 22:38:02 -04:00
parent 56135fbf62
commit f17aef943c
2 changed files with 4 additions and 1 deletions

View File

@ -23,6 +23,9 @@ if(NOT ENABLE_CURL)
list(REMOVE_ITEM files modules/github.cpp) list(REMOVE_ITEM files modules/github.cpp)
list(REMOVE_ITEM files utils/http.cpp) list(REMOVE_ITEM files utils/http.cpp)
endif() endif()
if(NOT ENABLE_DWM)
list(REMOVE_ITEM files modules/dwm.cpp)
endif()
if(NOT ENABLE_MPD) if(NOT ENABLE_MPD)
list(REMOVE_ITEM files modules/mpd.cpp) list(REMOVE_ITEM files modules/mpd.cpp)
list(REMOVE_ITEM files adapters/mpd.cpp) list(REMOVE_ITEM files adapters/mpd.cpp)