From 72d17343ea6f160f101161d28c7b5a99dc62f73f Mon Sep 17 00:00:00 2001 From: hefee Date: Fri, 1 Apr 2022 21:11:00 +0100 Subject: [PATCH] Make QtWebEngine optional Origin: Debian Last-Update: 2019-03-21 Most resources do not depend on QtWebEngine, so let's enable kdepim-runtime for all other archs, too. Last-Update: 2019-03-21 Gbp-Pq: Name make_qtwebengine_optional.patch --- CMakeLists.txt | 3 ++- resources/CMakeLists.txt | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8c7c623f..bda17b14 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -105,7 +105,8 @@ set_package_properties(Qt5TextToSpeech PROPERTIES DESCRIPTION if(Qt5TextToSpeech_FOUND) set(HAVE_TEXT_TO_SPEECH_SUPPORT TRUE) endif() -find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Network Widgets Test XmlPatterns DBus WebEngineWidgets NetworkAuth) +find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Network Widgets Test XmlPatterns DBus NetworkAuth) +find_package(Qt5 OPTIONAL_COMPONENTS WebEngineWidgets) # KF5 package diff --git a/resources/CMakeLists.txt b/resources/CMakeLists.txt index 0cf2ff1d..ea4309f6 100644 --- a/resources/CMakeLists.txt +++ b/resources/CMakeLists.txt @@ -75,5 +75,8 @@ add_subdirectory( vcarddir ) add_subdirectory( icaldir ) add_subdirectory( vcard ) add_subdirectory( folderarchivesettings ) -add_subdirectory( tomboynotes ) -add_subdirectory( ews ) + +if(Qt5WebEngineWidgets_FOUND) + add_subdirectory( ews ) + add_subdirectory( tomboynotes ) +endif() -- 2.30.2