From 3489ac7852905454ed2a6ce37c8002926ea1e5f0 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Wed, 14 Dec 2016 20:12:50 +0100 Subject: [PATCH] fix(build): Strip alsa sources when not building with alsalib --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 12b85a04..005044ac 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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)