1
0
mirror of https://invent.kde.org/network/krfb synced 2024-07-01 07:24:29 +00:00

Fix pipewire.h include not found

Without linking directly on PkgConfig::PipeWire, the header isn't found.
It isn't found because KPipeWire doesn't expose that dependency publicly.
This commit is contained in:
Maxime Roussin-Belanger 2024-01-19 23:14:07 -05:00 committed by Alexey Min
parent 4abd4c8b06
commit b3e3042bd8
2 changed files with 6 additions and 3 deletions

View File

@ -74,12 +74,14 @@ find_package(LibVNCServer REQUIRED)
option(DISABLE_PIPEWIRE "Disable PipeWire support." OFF)
if(NOT DISABLE_PIPEWIRE)
find_package(KPipeWire REQUIRED)
find_package(KPipeWire CONFIG REQUIRED)
pkg_check_modules(PipeWire IMPORTED_TARGET libpipewire-0.3)
add_feature_info(PipeWire PipeWire_FOUND "Required for pipewire screencast plugin")
endif()
add_feature_info(PipeWire KPipeWire_FOUND "Required for pipewire screencast plugin")
find_package(PlasmaWaylandProtocols 1.5.0)
if(KPipeWire_FOUND AND PlasmaWaylandProtocols_FOUND)
if(KPipeWire_FOUND AND PipeWire_FOUND AND PlasmaWaylandProtocols_FOUND)
find_package(KWayland REQUIRED)
find_package(QtWaylandScanner REQUIRED)
find_package(Qt6WaylandClient)

View File

@ -45,6 +45,7 @@ target_link_libraries(krfb_framebuffer_pw
Qt::Gui
Qt::DBus
KF6::CoreAddons
PkgConfig::PipeWire
Plasma::KWaylandClient
Wayland::Client
krfbprivate