summaryrefslogtreecommitdiffstats
path: root/qtserialbus.pro
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@theqtcompany.com>2015-07-08 10:38:15 +0200
committerAlex Blasche <alexander.blasche@theqtcompany.com>2015-07-08 10:02:10 +0000
commit1b3ff6242a787d741c841c22e36a8be68ad2e627 (patch)
treef7a8f0c72389910a9cf9ab3b73868aa7df71d7c8 /qtserialbus.pro
parent21d36097e932667d0915b02271e4732b93e8c94b (diff)
Don't print linux header warnings on non-Linux platforms
Change-Id: I01b7e7065f91ed76057e054e51fe04b6e347cd5c Reviewed-by: Janne Heikki Partala <janne.partala@bitfactor.fi> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'qtserialbus.pro')
-rw-r--r--qtserialbus.pro17
1 files changed, 9 insertions, 8 deletions
diff --git a/qtserialbus.pro b/qtserialbus.pro
index 4a09bc9..a561aab 100644
--- a/qtserialbus.pro
+++ b/qtserialbus.pro
@@ -3,12 +3,13 @@ lessThan(QT_MAJOR_VERSION, 5) {
}
load(configure)
-!qtCompileTest(socketcan) {
- warning("You need linux/can.h and linux/can/raw.h linux headers for socketCAN support, disabling it")
-}
-!qtCompileTest(socketcan_fd) {
- warning("Newer kernel needed for flexible data-rate frame support 'canfd_frame'")
-}
-
-
+qtCompileTest(socketcan)
+qtCompileTest(socketcan_fd)
load(qt_parts)
+
+linux {
+ !config_socketcan:
+ warning("You need linux/can.h and linux/can/raw.h linux headers for socketCAN support, disabling it")
+ !config_socketcan_fd:
+ warning("Newer kernel needed for flexible data-rate frame support 'canfd_frame'")
+}