From f48c7bb28b467c28e9fc73fd5e36c9408b280b0d Mon Sep 17 00:00:00 2001 From: xibowen Date: Mon, 29 Jan 2024 16:23:22 +0800 Subject: [PATCH] Fix Remove libkysdk-system error --- polkit-agent/CMakeLists.txt | 4 ++-- polkit-agent/src/PolkitListener.cpp | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/polkit-agent/CMakeLists.txt b/polkit-agent/CMakeLists.txt index 388c12a..a4ad230 100644 --- a/polkit-agent/CMakeLists.txt +++ b/polkit-agent/CMakeLists.txt @@ -4,9 +4,9 @@ project(ukui-polkit-agent) pkg_check_modules(QGS REQUIRED gsettings-qt) #pkg_search_module(GSETTINGS_QT REQUIRED gsettings-qt) -pkg_check_modules(KDKINFO REQUIRED kysdk-sysinfo) +pkg_check_modules(KDKINFO kysdk-sysinfo) if (KDKINFO_FOUND) - add_definitions(-DKEKINFO_FOUND="true") + ADD_DEFINITIONS(-DKDKINFO_FOUND="true") endif() #pkg_search_module(KDKINFO REQUIRED kysdk-sysinfo) diff --git a/polkit-agent/src/PolkitListener.cpp b/polkit-agent/src/PolkitListener.cpp index 089589b..5da341a 100644 --- a/polkit-agent/src/PolkitListener.cpp +++ b/polkit-agent/src/PolkitListener.cpp @@ -35,7 +35,10 @@ #include "PolkitListener.h" #include "mainwindow.h" #include "generic.h" + +#ifdef KDK_INFOFOUND #include +#endif PolkitListener::PolkitListener(QObject *parent) : Listener(parent),