Fix Remove libkysdk-system error

This commit is contained in:
xibowen 2024-01-29 16:23:22 +08:00
parent 5cc4c4b72f
commit f48c7bb28b
2 changed files with 5 additions and 2 deletions

View File

@ -4,9 +4,9 @@ project(ukui-polkit-agent)
pkg_check_modules(QGS REQUIRED gsettings-qt) pkg_check_modules(QGS REQUIRED gsettings-qt)
#pkg_search_module(GSETTINGS_QT 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) if (KDKINFO_FOUND)
add_definitions(-DKEKINFO_FOUND="true") ADD_DEFINITIONS(-DKDKINFO_FOUND="true")
endif() endif()
#pkg_search_module(KDKINFO REQUIRED kysdk-sysinfo) #pkg_search_module(KDKINFO REQUIRED kysdk-sysinfo)

View File

@ -35,7 +35,10 @@
#include "PolkitListener.h" #include "PolkitListener.h"
#include "mainwindow.h" #include "mainwindow.h"
#include "generic.h" #include "generic.h"
#ifdef KDK_INFOFOUND
#include <libkysysinfo.h> #include <libkysysinfo.h>
#endif
PolkitListener::PolkitListener(QObject *parent) PolkitListener::PolkitListener(QObject *parent)
: Listener(parent), : Listener(parent),