From 02616bf6bebe90d73004953174b0cfc541db5a18 Mon Sep 17 00:00:00 2001 From: capitalistspz Date: Wed, 28 May 2025 14:18:01 +0100 Subject: [PATCH] build: Allow Linux builds to be made without Bluez (#1579) --- src/gui/input/PairingDialog.cpp | 2 +- src/input/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/input/PairingDialog.cpp b/src/gui/input/PairingDialog.cpp index 350fce81..ecbfc110 100644 --- a/src/gui/input/PairingDialog.cpp +++ b/src/gui/input/PairingDialog.cpp @@ -225,7 +225,7 @@ void PairingDialog::WorkerThread() BluetoothFindDeviceClose(deviceFind); } } -#elif BOOST_OS_LINUX +#elif defined(HAS_BLUEZ) void PairingDialog::WorkerThread() { constexpr static uint8_t LIAC_LAP[] = {0x00, 0x8b, 0x9e}; diff --git a/src/input/CMakeLists.txt b/src/input/CMakeLists.txt index 004dc2ba..62fa8d85 100644 --- a/src/input/CMakeLists.txt +++ b/src/input/CMakeLists.txt @@ -104,6 +104,6 @@ if (ENABLE_WXWIDGETS) endif() -if (UNIX AND NOT APPLE) +if (ENABLE_BLUEZ) target_link_libraries(CemuInput PRIVATE bluez::bluez) endif () \ No newline at end of file