From 83e6476be877026564e6995590c6f7919845c171 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Sat, 6 Mar 2021 15:23:23 +0100 Subject: [PATCH] [finishedq] Tighten up requirements --- src/modules/finishedq/CMakeLists.txt | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/modules/finishedq/CMakeLists.txt b/src/modules/finishedq/CMakeLists.txt index e1db7c767..74c88e6e4 100644 --- a/src/modules/finishedq/CMakeLists.txt +++ b/src/modules/finishedq/CMakeLists.txt @@ -8,13 +8,11 @@ if( NOT WITH_QML ) return() endif() -find_package( Qt5 ${QT_VERSION} CONFIG REQUIRED DBus Network ) - -find_package( KF5Plasma CONFIG) -set_package_properties(KF5Plasma PROPERTIES - DESCRIPTION "Used for running commands in QML" - TYPE RUNTIME -) +find_package( Qt5 ${QT_VERSION} CONFIG DBus Network ) +if ( NOT TARGET Qt5::DBus OR NOT TARGET Qt5::Network ) + calamares_skip_module( "finishedq (missing DBus or Network)" ) + return() +endif() set( _finished ${CMAKE_CURRENT_SOURCE_DIR}/../finished ) include_directories( ${_finished} )