From 63d2ab4ee65d77d89ae15468baec63d7c2058f05 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Wed, 2 Sep 2020 17:04:52 +0100 Subject: [PATCH] Link Wayland::Server as an external dependency Raw wl_ objects are used throughout the public headers repeatedly. Exporting the linked library helps clients (kwin) build cleanly. --- src/wayland/CMakeLists.txt | 5 +++-- src/wayland/server/screencast_interface.h | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/wayland/CMakeLists.txt b/src/wayland/CMakeLists.txt index 0f99682068..6f9d4a9fdd 100644 --- a/src/wayland/CMakeLists.txt +++ b/src/wayland/CMakeLists.txt @@ -345,9 +345,10 @@ ecm_generate_export_header(KWaylandServer target_include_directories(KWaylandServer INTERFACE "$") target_link_libraries(KWaylandServer - PUBLIC Qt5::Gui - PRIVATE + PUBLIC + Qt5::Gui Wayland::Server + PRIVATE EGL::EGL Qt5::Concurrent ) diff --git a/src/wayland/server/screencast_interface.h b/src/wayland/server/screencast_interface.h index 439f2ec1f2..79730d16ef 100644 --- a/src/wayland/server/screencast_interface.h +++ b/src/wayland/server/screencast_interface.h @@ -12,6 +12,7 @@ #include #include #include +#include struct wl_resource;