diff options
| author | Stephen Sinclair <radarsat1@users.noreply.github.com> | 2017-04-17 12:47:03 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-17 12:47:03 -0300 |
| commit | a0e1549e6df433cec8129ec0ef98bf26dc075c21 (patch) | |
| tree | 5b4946be17db56c391687621440829b859348251 | |
| parent | 5c664cdd7e5201d6077ed0d1e47d2cf207ecb2b1 (diff) | |
| parent | 33444d65018dda0912552a53e5e0b3836468d9a9 (diff) | |
Merge pull request #85 from sudden6/master
Pulseaudio backend also needs pthreads
| -rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9de6a85..9117e40 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) |
