Changed the CMake configuration to only check for the BlueZ library on Linux and not on FreeBSD

This commit is contained in:
Leon Styhre 2025-02-24 21:42:01 +01:00
parent 0909f5e99a
commit 0570c22001

View file

@ -145,7 +145,6 @@ elseif(WIN32)
message(FATAL_ERROR "-- You need to build the dependencies in ./external first") message(FATAL_ERROR "-- You need to build the dependencies in ./external first")
endif() endif()
elseif(NOT EMSCRIPTEN AND NOT ANDROID AND NOT IOS) elseif(NOT EMSCRIPTEN AND NOT ANDROID AND NOT IOS)
find_package(Bluez REQUIRED)
find_package(CURL REQUIRED) find_package(CURL REQUIRED)
find_package(FFmpeg REQUIRED) find_package(FFmpeg REQUIRED)
find_package(FreeImage REQUIRED) find_package(FreeImage REQUIRED)
@ -166,6 +165,7 @@ endif()
# Add ALSA for Linux. # Add ALSA for Linux.
if(CMAKE_SYSTEM_NAME MATCHES Linux) if(CMAKE_SYSTEM_NAME MATCHES Linux)
find_package(ALSA REQUIRED) find_package(ALSA REQUIRED)
find_package(Bluez REQUIRED)
endif() endif()
#--------------------------------------------------------------------------------------------------- #---------------------------------------------------------------------------------------------------