cmake: Move PulseAudio detection to AudioCommon

This commit is contained in:
Florent Castelli
2017-02-07 23:28:01 +01:00
parent 22fbcc67fc
commit c1dcd06043
3 changed files with 56 additions and 16 deletions

View File

@ -440,19 +440,6 @@ else()
message(STATUS "bluez explicitly disabled, disabling bluetooth support")
endif()
if(ENABLE_PULSEAUDIO)
check_lib(PULSEAUDIO libpulse pulse QUIET)
if(PULSEAUDIO_FOUND)
add_definitions(-DHAVE_PULSEAUDIO=1)
message(STATUS "PulseAudio found, enabling PulseAudio sound backend")
else()
add_definitions(-DHAVE_PULSEAUDIO=0)
message(STATUS "PulseAudio NOT found, disabling PulseAudio sound backend")
endif()
else()
message(STATUS "PulseAudio explicitly disabled, disabling PulseAudio sound backend")
endif()
if(ENABLE_LLVM)
find_package(LLVM)
if (LLVM_FOUND)