fix(build): Strip alsa sources when not building with alsalib

This commit is contained in:
Michael Carlberg 2016-12-14 20:12:50 +01:00
parent 4c36d65cbe
commit 3489ac7852

View File

@ -7,7 +7,7 @@
file(GLOB_RECURSE SOURCES RELATIVE ${PROJECT_SOURCE_DIR}/src *.c[p]*)
if(NOT ENABLE_ALSA)
list(REMOVE_ITEM SOURCES adapters/alsa.cpp modules/volume.cpp)
list(REMOVE_ITEM SOURCES adapters/alsa/mixer.cpp adapters/alsa/control.cpp modules/volume.cpp)
endif()
if(NOT ENABLE_MPD)
list(REMOVE_ITEM SOURCES adapters/mpd.cpp modules/mpd.cpp)