Fix optional building with or without libudev

pull/10/head
Simon Stürz 2020-12-09 10:58:53 +01:00
parent 40d6fdaa90
commit 85856eaaa8
2 changed files with 6 additions and 6 deletions

View File

@ -3,13 +3,13 @@ include(../config.pri)
TARGET = nymea-zigbee1
TEMPLATE = lib
disable_udev {
CONFIG += link_pkgconfig
packagesExist(libudev) {
message(Build with libudev support)
PKGCONFIG += libudev
} else {
message(Build without libudev support)
DEFINES += DISABLE_UDEV
} else {
CONFIG += link_pkgconfig
PKGCONFIG += libudev
}
SOURCES += \

View File

@ -64,7 +64,7 @@ ZigbeeUartAdapterMonitor::ZigbeeUartAdapterMonitor(QObject *parent) : QObject(pa
}
});
m_timer->start();
#else
// Init udev
m_udev = udev_new();