Fix a potential build issue when building KMail

Authored by krop on May 14 2019, 7:23 AM.

Description

Fix a potential build issue when building KMail

Summary:
some public mailcommon headers include libkdepim ones but the build system
currently doesn't look for this dependency.

Let's look for libkdepim for building mailcommon and explicitly add
KF5::Libkdepim to the 'PUBLIC' link targets to fix the
INTERFACE_LINK_LIBRARIES instead of relying on indirect dependencies.

Also fix a wrong #include statement.

BUG: 407163
FIXED-IN: 5.11.2

Reviewers: mlaurent, vandenoever

Reviewed By: mlaurent

Subscribers: kde-pim

Tags: KDE PIM

Differential Revision: https://phabricator.kde.org/D21205

Details

Committed
kropMay 14 2019, 11:18 AM
Reviewer
mlaurent
Differential Revision
D21205: Fix a potential build issue when building KMail
Parents
R92:1ad4c0145f52: GIT_SILENT: Prepare 5.11.2
Branches
Unknown
Tags
Unknown