summaryrefslogtreecommitdiffstats
path: root/qtserialbus.pro
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@theqtcompany.com>2015-09-08 09:48:36 +0200
committerAlex Blasche <alexander.blasche@theqtcompany.com>2015-09-11 13:39:21 +0000
commitda51c230cef893396732b04e4ad7e10ef7ac334f (patch)
treec93e57da2a00088534e29c843763da204c58c888 /qtserialbus.pro
parentba3be51b6a7b1fc1fbb0e99b5d4417a3ef0a537c (diff)
Ensure that platform's libmodbus is used when available
Change-Id: I800a490f858729c7aa678429bea7b8109e2c68c0 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
Diffstat (limited to 'qtserialbus.pro')
-rw-r--r--qtserialbus.pro10
1 files changed, 10 insertions, 0 deletions
diff --git a/qtserialbus.pro b/qtserialbus.pro
index 76c3fce..24737f1 100644
--- a/qtserialbus.pro
+++ b/qtserialbus.pro
@@ -9,6 +9,10 @@ lessThan(QT_MAJOR_VERSION, 5) {
load(configure)
qtCompileTest(socketcan)
qtCompileTest(socketcan_fd)
+
+# Check we have a platform libmodbus in case we prefer the platform version.
+qtCompileTest(libmodbus_systemlib)
+
qtCompileTest(libmodbus_accept4)
qtCompileTest(libmodbus_byteswap)
qtCompileTest(libmodbus_rs485)
@@ -20,3 +24,9 @@ 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'")
}
+
+config_libmodbus_systemlib {
+ message("Using platform's libmodbus")
+} else {
+ message("Using internal libmodbus")
+}