summaryrefslogtreecommitdiffstats
path: root/project/cmake/modules/FindBluetooth.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'project/cmake/modules/FindBluetooth.cmake')
-rw-r--r--project/cmake/modules/FindBluetooth.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/project/cmake/modules/FindBluetooth.cmake b/project/cmake/modules/FindBluetooth.cmake
index 538e89c..a69980d 100644
--- a/project/cmake/modules/FindBluetooth.cmake
+++ b/project/cmake/modules/FindBluetooth.cmake
@@ -14,12 +14,12 @@
14# Bluetooth::Bluetooth - The Bluetooth library 14# Bluetooth::Bluetooth - The Bluetooth library
15 15
16if(PKG_CONFIG_FOUND) 16if(PKG_CONFIG_FOUND)
17 pkg_check_modules(PC_BLUETOOTH bluetooth QUIET) 17 pkg_check_modules(PC_BLUETOOTH bluez bluetooth QUIET)
18endif() 18endif()
19 19
20find_path(BLUETOOTH_INCLUDE_DIR NAMES bluetooth/bluetooth.h 20find_path(BLUETOOTH_INCLUDE_DIR NAMES bluetooth/bluetooth.h
21 PATHS ${PC_BLUETOOTH_INCLUDEDIR}) 21 PATHS ${PC_BLUETOOTH_INCLUDEDIR})
22find_library(BLUETOOTH_LIBRARY NAMES bluetooth 22find_library(BLUETOOTH_LIBRARY NAMES bluetooth libbluetooth
23 PATHS ${PC_BLUETOOTH_LIBDIR}) 23 PATHS ${PC_BLUETOOTH_LIBDIR})
24 24
25set(BLUETOOTH_VERSION ${PC_BLUETOOTH_VERSION}) 25set(BLUETOOTH_VERSION ${PC_BLUETOOTH_VERSION})
@@ -27,7 +27,7 @@ set(BLUETOOTH_VERSION ${PC_BLUETOOTH_VERSION})
27include(FindPackageHandleStandardArgs) 27include(FindPackageHandleStandardArgs)
28find_package_handle_standard_args(Bluetooth 28find_package_handle_standard_args(Bluetooth
29 REQUIRED_VARS BLUETOOTH_LIBRARY BLUETOOTH_INCLUDE_DIR 29 REQUIRED_VARS BLUETOOTH_LIBRARY BLUETOOTH_INCLUDE_DIR
30 VERSION_VAR ${BLUETOOTH_VERSION}) 30 VERSION_VAR BLUETOOTH_VERSION)
31 31
32if(BLUETOOTH_FOUND) 32if(BLUETOOTH_FOUND)
33 set(BLUETOOTH_INCLUDE_DIRS ${BLUETOOTH_INCLUDE_DIR}) 33 set(BLUETOOTH_INCLUDE_DIRS ${BLUETOOTH_INCLUDE_DIR})