summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaszlo Papp <lpapp@kde.org>2013-02-11 18:36:15 +0000
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-11 21:06:45 +0100
commit4c365a626e0216535ea89bfcc3c2278ee37736f6 (patch)
tree78af50ba8124188781f5fba848616a99d1fc5a1b
parentf0830f89528da138969b8834e9c5f43d849969a1 (diff)
downloadqtserialport-4c365a626e0216535ea89bfcc3c2278ee37736f6.tar.gz
Use the pkg-config for finding libudev only on Unix
This is not a critical error, but Windows at least gives some warning about the pkgconfig unavailable. Libudev should be working only on Unix after all. Change-Id: I3ee088f6ae3cc663a9fabe441a2eefa2a23d2f32 Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
-rw-r--r--src/serialport/serialport-lib.pri10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/serialport/serialport-lib.pri b/src/serialport/serialport-lib.pri
index 88be1fc..db8ff74 100644
--- a/src/serialport/serialport-lib.pri
+++ b/src/serialport/serialport-lib.pri
@@ -1,10 +1,12 @@
INCLUDEPATH += $$PWD
-CONFIG += link_pkgconfig
+unix {
+ CONFIG += link_pkgconfig
-packagesExist(libudev) {
- DEFINES += HAVE_LIBUDEV
- PKGCONFIG += libudev
+ packagesExist(libudev) {
+ DEFINES += HAVE_LIBUDEV
+ PKGCONFIG += libudev
+ }
}
PUBLIC_HEADERS += \