Commit b42f5362 authored by Heiko Becker's avatar Heiko Becker
Browse files

Use an imported target for PulseAudio

Available since extra-cmake-modules 5.41.0.

GIT_SILET
parent 348c8b5b
......@@ -93,7 +93,6 @@ endif ()
if (PulseAudio_FOUND)
add_definitions(-DHAVE_PULSE)
include_directories(${PulseAudio_INCLUDE_DIRS})
endif ()
if (CANBERRA_FOUND)
......@@ -211,7 +210,7 @@ if (HAVE_LIBASOUND2)
endif ()
if (PulseAudio_FOUND)
target_link_libraries(kmixcore PRIVATE ${PulseAudio_LIBRARIES} ${PulseAudio_MAINLOOP_LIBRARY})
target_link_libraries(kmixcore PRIVATE PulseAudio::PulseAudio)
endif ()
if (CANBERRA_FOUND)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment