From d8ff7c759b0be6e1da8671ac51ca0a30021da6a0 Mon Sep 17 00:00:00 2001 From: Oschowa Date: Thu, 24 Oct 2019 23:21:35 +0200 Subject: [PATCH] 3rdparty: only build FAudio with SDL >= 2.0.9 --- 3rdparty/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/3rdparty/CMakeLists.txt b/3rdparty/CMakeLists.txt index 5de99ee24a..6dfd7d21a1 100644 --- a/3rdparty/CMakeLists.txt +++ b/3rdparty/CMakeLists.txt @@ -342,7 +342,9 @@ set(FAUDIO_TARGET 3rdparty_dummy_lib) if(USE_FAUDIO) # FAudio depends on SDL2 pkg_check_modules(SDL2 sdl2) - if(SDL2_FOUND) + if (NOT SDL2_FOUND OR SDL2_VERSION VERSION_LESS 2.0.9) + message("-- RPCS3: FAudio requires SDL 2.0.9 or newer.") + else() add_subdirectory(FAudio EXCLUDE_FROM_ALL) target_compile_definitions(FAudio INTERFACE -DHAVE_FAUDIO) set(FAUDIO_TARGET FAudio)