mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-11-20 08:21:46 +00:00
CMakeLists: Fix build on Linux with CMake versions less than 3.25.
This commit is contained in:
parent
2170080f53
commit
1e144a7cfd
@ -30,6 +30,10 @@ set(CMAKE_USER_MAKE_RULES_OVERRIDE "${CMAKE_CURRENT_SOURCE_DIR}/CMake/FlagsOverr
|
||||
|
||||
project(dolphin-emu)
|
||||
|
||||
if (CMAKE_VERSION VERSION_LESS "3.25" AND CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
set(LINUX TRUE)
|
||||
endif()
|
||||
|
||||
if (MSVC)
|
||||
if (POLICY CMP0117)
|
||||
# cmake is a weird language. You can't do if(not POLICY)
|
||||
|
||||
@ -755,7 +755,7 @@ elseif(UNIX)
|
||||
endif()
|
||||
|
||||
# Bluez doesn't support all the communication modes on FreeBSD, so only using it on Linux
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
if(LINUX)
|
||||
option(ENABLE_BLUEZ "Enables bluetooth support" ON)
|
||||
if(ENABLE_BLUEZ)
|
||||
find_package(BlueZ)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user