From 9d935c248e34d0c54894fbf32de9778642d63335 Mon Sep 17 00:00:00 2001 From: casey langen Date: Wed, 27 Dec 2017 15:46:53 -0800 Subject: [PATCH] Enable PulseAudio by default on Linux, disable by default on FreeBSD, but allow configuration via CMake flag. --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b94ea6ed2..cd934a70c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -104,10 +104,14 @@ add_dependencies(taglibreader taglib) if (CMAKE_SYSTEM_NAME MATCHES "Linux") add_subdirectory(src/plugins/alsaout) - add_subdirectory(src/plugins/pulseout) + if (NOT ${ENABLE_PULSEAUDIO} MATCHES "false") # enabled by default + add_subdirectory(src/plugins/pulseout) + endif() elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD") add_subdirectory(src/plugins/sndioout) - add_subdirectory(src/plugins/pulseout) + if (${ENABLE_PULSEAUDIO} MATCHES "true") + add_subdirectory(src/plugins/pulseout) # disabled by default + endif() elseif (CMAKE_SYSTEM_NAME MATCHES "Darwin") add_subdirectory(src/plugins/coreaudioout) endif()