diff options
| author | Harald Sitter <[email protected]> | 2018-11-15 14:43:57 +0100 |
|---|---|---|
| committer | Harald Sitter <[email protected]> | 2018-11-17 12:25:15 +0100 |
| commit | a4cddf7517dab5f666f1c1ede2a58900f3bc5e53 (patch) | |
| tree | 7503f07c49d3a91b93c86cb869752761b18cbe87 | |
| parent | cee7266e103a1c49731fe55628511a885694f539 (diff) | |
move kcrash link to dolphin app (which is the effective user)
Summary:
to successfully use kcrash when linking with as-needed (which is a default
flag on many linux distros) one also needs to call KCrash::initialize.
this call happens in the app's main.cpp. as such the kcrash link target
on the dolphinprivate library doesn't do anything for dolphinprivate but
only kicks into action for dolphin itself.
to avoid confusion and make it clear that kcrash is only initialized in the
application scope the KF5::Crash link target is now on the application
target, not the library target.
(this makes no difference in the output, kcrash was still correctly linked
via dolphinprivate; but only for kdeinit_dolphin, dolphinprivate did
not get linked to it with as-needed)
Test Plan: builds; links as expected
Reviewers: elvisangelaccio, #dolphin
Reviewed By: elvisangelaccio, #dolphin
Subscribers: kfm-devel
Tags: #dolphin
Differential Revision: https://phabricator.kde.org/D16896
| -rw-r--r-- | src/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4a1f173d8..d5206beb3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -136,7 +136,6 @@ target_link_libraries( dolphinvcs Qt5::Concurrent Qt5::Gui - KF5::Crash KF5::I18n KF5::IconThemes KF5::KIOCore @@ -301,6 +300,7 @@ kf5_add_kdeinit_executable(dolphin ${dolphin_SRCS}) target_link_libraries(kdeinit_dolphin PRIVATE dolphinstatic dolphinprivate + KF5::Crash ) include(DbusInterfaceMacros) |
