Link pthread when building USE_PULSE.

This was working accidentally by picking up pthread via the common
configuration including USE_ALSA.
This commit is contained in:
Matthew Gregan 2019-07-02 13:48:36 +12:00
Родитель 98a1c8e61c
Коммит 0d1d9d84fb
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -156,7 +156,7 @@ if(USE_PULSE)
target_sources(cubeb PRIVATE
src/cubeb_pulse.c)
target_compile_definitions(cubeb PRIVATE USE_PULSE)
target_link_libraries(cubeb PRIVATE pulse)
target_link_libraries(cubeb PRIVATE pulse pthread)
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
target_link_libraries(cubeb PRIVATE dl)
endif()