Skip to content

Commit

Permalink
Merge pull request #85 from sudden6/master
Browse files Browse the repository at this point in the history
Pulseaudio backend also needs pthreads
  • Loading branch information
radarsat1 committed Apr 17, 2017
2 parents 5c664cd + 33444d6 commit a0e1549
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Expand Up @@ -44,7 +44,8 @@ elseif (UNIX AND NOT APPLE)
if (AUDIO_LINUX_PULSE)
find_library(PULSE_LIB pulse)
find_library(PULSESIMPLE_LIB pulse-simple)
list(APPEND LINKLIBS ${PULSE_LIB} ${PULSESIMPLE_LIB})
find_package(Threads REQUIRED CMAKE_THREAD_PREFER_PTHREAD)
list(APPEND LINKLIBS ${PULSE_LIB} ${PULSESIMPLE_LIB} ${CMAKE_THREAD_LIBS_INIT})
add_definitions(-D__LINUX_PULSE__)
message(STATUS "Using Linux PulseAudio")
endif (AUDIO_LINUX_PULSE)
Expand Down

0 comments on commit a0e1549

Please sign in to comment.