summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2020-09-19 14:16:08 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-09-19 19:26:26 -0700
commite1befbea0aaa537945741ae9d14e590f4ca5171b (patch)
treeb17e2b10fcb5e35d85655d08ffe31d067547d409 /CMakeLists.txt
parent9e50ab87dc89d72ad803d65e09a66b20fd3787e2 (diff)
downloadsubsurface-e1befbea0aaa537945741ae9d14e590f4ca5171b.tar.gz
core/bluetooth: switch to use libdivecomputer rfcomm support
The Qt based implementation apparently got broken at some point and now fails to connect to rfcomm dive computers like the Shearwater Petrel. This uses the libdivecomputer rfcomm backend. Tested to work with bluez on Linux as well as with the native Windows implementation. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 61cb33822..3bb4f040a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -154,6 +154,9 @@ endif()
pkg_config_library(LIBZIP libzip REQUIRED)
if(NOT ANDROID)
+ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
+ pkg_config_library(BLUEZ bluez REQUIRED)
+ endif()
pkg_config_library(LIBUSB libusb-1.0 QUIET)
endif()