diff options
Diffstat (limited to 'project/cmake/modules/FindBluetooth.cmake')
| -rw-r--r-- | project/cmake/modules/FindBluetooth.cmake | 6 |
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 | ||
| 16 | if(PKG_CONFIG_FOUND) | 16 | if(PKG_CONFIG_FOUND) |
| 17 | pkg_check_modules(PC_BLUETOOTH bluetooth QUIET) | 17 | pkg_check_modules(PC_BLUETOOTH bluez bluetooth QUIET) |
| 18 | endif() | 18 | endif() |
| 19 | 19 | ||
| 20 | find_path(BLUETOOTH_INCLUDE_DIR NAMES bluetooth/bluetooth.h | 20 | find_path(BLUETOOTH_INCLUDE_DIR NAMES bluetooth/bluetooth.h |
| 21 | PATHS ${PC_BLUETOOTH_INCLUDEDIR}) | 21 | PATHS ${PC_BLUETOOTH_INCLUDEDIR}) |
| 22 | find_library(BLUETOOTH_LIBRARY NAMES bluetooth | 22 | find_library(BLUETOOTH_LIBRARY NAMES bluetooth libbluetooth |
| 23 | PATHS ${PC_BLUETOOTH_LIBDIR}) | 23 | PATHS ${PC_BLUETOOTH_LIBDIR}) |
| 24 | 24 | ||
| 25 | set(BLUETOOTH_VERSION ${PC_BLUETOOTH_VERSION}) | 25 | set(BLUETOOTH_VERSION ${PC_BLUETOOTH_VERSION}) |
| @@ -27,7 +27,7 @@ set(BLUETOOTH_VERSION ${PC_BLUETOOTH_VERSION}) | |||
| 27 | include(FindPackageHandleStandardArgs) | 27 | include(FindPackageHandleStandardArgs) |
| 28 | find_package_handle_standard_args(Bluetooth | 28 | find_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 | ||
| 32 | if(BLUETOOTH_FOUND) | 32 | if(BLUETOOTH_FOUND) |
| 33 | set(BLUETOOTH_INCLUDE_DIRS ${BLUETOOTH_INCLUDE_DIR}) | 33 | set(BLUETOOTH_INCLUDE_DIRS ${BLUETOOTH_INCLUDE_DIR}) |
