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