3rdparty: only build FAudio with SDL >= 2.0.9
This commit is contained in:
Vendored
+3
-1
@@ -342,7 +342,9 @@ set(FAUDIO_TARGET 3rdparty_dummy_lib)
|
|||||||
if(USE_FAUDIO)
|
if(USE_FAUDIO)
|
||||||
# FAudio depends on SDL2
|
# FAudio depends on SDL2
|
||||||
pkg_check_modules(SDL2 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)
|
add_subdirectory(FAudio EXCLUDE_FROM_ALL)
|
||||||
target_compile_definitions(FAudio INTERFACE -DHAVE_FAUDIO)
|
target_compile_definitions(FAudio INTERFACE -DHAVE_FAUDIO)
|
||||||
set(FAUDIO_TARGET FAudio)
|
set(FAUDIO_TARGET FAudio)
|
||||||
|
|||||||
Reference in New Issue
Block a user