Summary: | compilation fails due to wrong include statement | ||
---|---|---|---|
Product: | [Applications] kmail2 | Reporter: | Jos van den Oever <jos> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | montel |
Priority: | NOR | ||
Version: | 5.11.0 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/mailcommon/cea29406f7a1c1cdca2cbbde19ac9e8008b28342 | Version Fixed In: | 5.11.2 |
Sentry Crash Report: |
Description
Jos van den Oever
2019-05-02 18:49:09 UTC
This patch to kmail solves the issue (and one other similar issue): diff --git a/agents/archivemailagent/CMakeLists.txt b/agents/archivemailagent/CMakeLists.txt index 48ed076..9c56896 100644 --- a/agents/archivemailagent/CMakeLists.txt +++ b/agents/archivemailagent/CMakeLists.txt @@ -22,6 +22,7 @@ ki18n_wrap_ui(libarchivemailagent_SRCS ui/archivemailwidget.ui ) add_library(archivemailagent STATIC ${libarchivemailagent_SRCS}) target_link_libraries(archivemailagent KF5::MailCommon + KF5::Libkdepim KF5::I18n KF5::Notifications KF5::IconThemes diff --git a/agents/followupreminderagent/CMakeLists.txt b/agents/followupreminderagent/CMakeLists.txt index a56b730..83604cf 100644 --- a/agents/followupreminderagent/CMakeLists.txt +++ b/agents/followupreminderagent/CMakeLists.txt @@ -23,6 +23,7 @@ target_link_libraries(followupreminderagent KF5::AkonadiMime KF5::AkonadiAgentBase KF5::DBusAddons + KF5::FollowupReminder KF5::XmlGui KF5::KIOWidgets KF5::Notifications when I look at "src/libkdepim/CMakeFiles/Export/lib64/cmake/KF5Libkdepim/KF5LibkdepimTargets.cmake" I have it: set_target_properties(KF5::Libkdepim PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include/KF5/Libkdepim/;${_IMPORT_PREFIX}/include/KF5/libkdepim;${_IMPORT_PREFIX}/include/KF5" ) So I don't understand why it doesn't generate correct path for you. Does changing #include "libkdepim/progressmanager.h" to #include <libkdepim/progressmanager.h> help? A fix has to go in mailcommon/src/CMakeLists.txt however: if a libkdepim header is used by a mailcommon header, KF5::Libkdepim needs to be added in the 'PUBLIC' link targets of KF5MailCommon. If you have proposed or applied patch for mailcommon/src/CMakeLists.txt, I can test it. Git commit cea29406f7a1c1cdca2cbbde19ac9e8008b28342 by Christophe Giboudeaux. Committed on 14/05/2019 at 11:18. Pushed by cgiboudeaux into branch 'Applications/19.04'. 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. FIXED-IN: 5.11.2 Reviewers: mlaurent, vandenoever Reviewed By: mlaurent Subscribers: kde-pim Tags: #kde_pim Differential Revision: https://phabricator.kde.org/D21205 M +1 -0 CMakeLists.txt M +1 -0 KF5MailCommonConfig.cmake.in M +1 -0 src/CMakeLists.txt M +2 -1 src/job/backupjob.h https://commits.kde.org/mailcommon/cea29406f7a1c1cdca2cbbde19ac9e8008b28342 |