Fix the naming of the BlueZ package
Adjust variable names to be case-sensitive. Pick-to: 6.5 6.4 6.2 Fixes: QTBUG-109315 Change-Id: I7d534fbfd7891740fbc8ac172b24a2b03832388b Reviewed-by: Kai Köhne <kai.koehne@qt.io> Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
This commit is contained in:
parent
3091522a6c
commit
0b941a3580
|
|
@ -1,10 +1,12 @@
|
||||||
# Copyright (C) 2022 The Qt Company Ltd.
|
# Copyright (C) 2022 The Qt Company Ltd.
|
||||||
# SPDX-License-Identifier: BSD-3-Clause
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
|
set(BlueZ_FOUND 0)
|
||||||
|
|
||||||
find_package(PkgConfig QUIET)
|
find_package(PkgConfig QUIET)
|
||||||
|
|
||||||
pkg_check_modules(BLUEZ bluez IMPORTED_TARGET)
|
pkg_check_modules(BLUEZ bluez IMPORTED_TARGET)
|
||||||
|
|
||||||
if (NOT TARGET PkgConfig::BLUEZ)
|
if(TARGET PkgConfig::BLUEZ)
|
||||||
set(BLUEZ_FOUND 0)
|
set(BlueZ_FOUND 1)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
#### Libraries
|
#### Libraries
|
||||||
|
|
||||||
qt_find_package(BlueZ PROVIDED_TARGETS PkgConfig::BlueZ)
|
qt_find_package(BlueZ PROVIDED_TARGETS PkgConfig::BLUEZ)
|
||||||
|
|
||||||
|
|
||||||
#### Tests
|
#### Tests
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue