Bug 428295

Summary: KWaylandServerTargets.cmake contains non-existing path - kwin fails to build
Product: [Frameworks and Libraries] kwayland Reporter: h.goebel
Component: serverAssignee: Martin Flöser <mgraesslin>
Status: REPORTED ---    
Severity: normal CC: kwin-bugs-null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description h.goebel 2020-10-26 19:31:30 UTC
kwayland-server-5.19.5 (sorry if this is not the correct product, didn't find another one)

Building packages depending on kwayland-server (e.g. kwin) fails on a system where each package resides in its own $PREFIX:

  CMake Error in CMakeLists.txt:
    Imported target "Plasma::KWaylandServer" includes non-existent path

      "/gnu/store/…-kwayland-server-5.19.5/include/KF5"

    in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:
    …


"/gnu/store/…-kwayland-server-5.19.5" is the of PREFIX of kwayland-server, and indeed there is no "include/KF5" directory in this prefix. The can easily be verfied by inspecting the filelist of the respoective Debian package:
https://packages.debian.org/bullseye/amd64/libkwaylandserver-dev/filelist
https://packages.debian.org/bullseye/amd64/libkwaylandserver5/filelist

This error only shows up if packages reside in PREFIXes of their own. Otherwise the directory will be provided by another package, sharing the same prefix.