From d967d050190d9d3cfb290d6773bd58e81fbb9924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Sat, 28 Dec 2024 22:13:49 +0800 Subject: [PATCH] Bluetooth (DragonFly): disable module to fix build --- CMakeLists.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 886028261..a56d50c59 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -618,7 +618,6 @@ elseif(FreeBSD) src/common/sysctl.c src/detection/battery/battery_bsd.c src/detection/bios/bios_bsd.c - src/detection/bluetooth/bluetooth_bsd.c src/detection/bluetoothradio/bluetoothradio_nosupport.c src/detection/board/board_bsd.c src/detection/bootmgr/bootmgr_bsd.c @@ -691,6 +690,15 @@ elseif(FreeBSD) src/util/platform/FFPlatform_unix.c src/util/binary_linux.c ) + if(DragonFly) + list(APPEND LIBFASTFETCH_SRC + src/detection/bluetooth/bluetooth_nosupport.c + ) + else() + list(APPEND LIBFASTFETCH_SRC + src/detection/bluetooth/bluetooth_bsd.c + ) + endif() elseif(NetBSD) list(APPEND LIBFASTFETCH_SRC src/common/dbus.c