From c4e33d0e79de26ee64229c78d4d2f034f54cdad5 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Mon, 26 Apr 2021 13:49:43 +0200 Subject: [PATCH] Make dependency on KI18n and KTextWidgets explicit They are already pulled in by KParts, but we better not rely on that --- CMakeLists.txt | 3 +++ shell/CMakeLists.txt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 59e7a5483..98031b3db 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -88,9 +88,11 @@ find_package(KF5 ${KF5_REQUIRED_VERSION} REQUIRED COMPONENTS ConfigWidgets CoreAddons Crash + I18n IconThemes KIO Parts + TextWidgets ThreadWeaver WindowSystem ${optionalComponents} @@ -445,6 +447,7 @@ target_link_libraries(okularpart okularcore KF5::Parts KF5::Solid KF5::WindowSystem + KF5::TextWidgets ) if(KF5Wallet_FOUND) diff --git a/shell/CMakeLists.txt b/shell/CMakeLists.txt index c73de5760..fa2c75e1f 100644 --- a/shell/CMakeLists.txt +++ b/shell/CMakeLists.txt @@ -18,7 +18,7 @@ ecm_add_app_icon(okular_SRCS ICONS ${ICONS_SRCS}) add_executable(okular ${okular_SRCS}) -target_link_libraries(okular KF5::Parts KF5::WindowSystem KF5::Crash) +target_link_libraries(okular KF5::I18n KF5::Parts KF5::WindowSystem KF5::Crash) if(TARGET KF5::Activities) target_compile_definitions(okular PUBLIC -DWITH_KACTIVITIES=1)