Skip to content

Commit

Permalink
alsa: do not link with lasound in the PA_ALSA_DYNAMIC case (#834)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier authored Dec 22, 2023
1 parent 34078a7 commit 0451480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,6 @@ elseif(UNIX)
find_package(ALSA)
cmake_dependent_option(PA_USE_ALSA "Enable support for ALSA" ON ALSA_FOUND OFF)
if(PA_USE_ALSA)
target_link_libraries(PortAudio PRIVATE "${ALSA_LIBRARIES}")
target_sources(PortAudio PRIVATE src/hostapi/alsa/pa_linux_alsa.c)
set(PORTAUDIO_PUBLIC_HEADERS "${PORTAUDIO_PUBLIC_HEADERS}" include/pa_linux_alsa.h)
target_compile_definitions(PortAudio PUBLIC PA_USE_ALSA=1)
Expand All @@ -340,6 +339,7 @@ elseif(UNIX)
target_link_libraries(PortAudio PRIVATE "${CMAKE_DL_LIBS}")
set(PKGCONFIG_LDFLAGS_PRIVATE "${PKGCONFIG_LDFLAGS_PRIVATE} -l${CMAKE_DL_LIBS}")
else()
target_link_libraries(PortAudio PRIVATE "${ALSA_LIBRARIES}")
set(PKGCONFIG_REQUIRES_PRIVATE "${PKGCONFIG_REQUIRES_PRIVATE} alsa")
endif()
endif()
Expand Down

0 comments on commit 0451480

Please sign in to comment.