fix(cmake): look for and remove alsa.cpp if not used

This commit is contained in:
NBonaparte 2018-02-09 14:03:21 -08:00 committed by Patrick Ziegler
parent 1ac5c23fd2
commit 539e2e09cf

View File

@ -8,7 +8,7 @@ file(GLOB_RECURSE files RELATIVE ${CMAKE_CURRENT_LIST_DIR} *.c[p]*)
list(REMOVE_ITEM files ipc.cpp)
if(NOT ENABLE_ALSA)
list(REMOVE_ITEM files modules/volume.cpp)
list(REMOVE_ITEM files modules/alsa.cpp)
list(REMOVE_ITEM files adapters/alsa/control.cpp)
list(REMOVE_ITEM files adapters/alsa/mixer.cpp)
endif()