1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 10:42:36 +01:00

Fixed issue with SDL2 version sometimes casuing build failure (#10599)

This commit is contained in:
polar 2021-07-22 03:11:03 +01:00 committed by GitHub
parent 737b0dfd42
commit fdc9619e7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -224,9 +224,14 @@ set(FAUDIO_TARGET 3rdparty_dummy_lib)
if(USE_FAUDIO) if(USE_FAUDIO)
# FAudio depends on SDL2 # FAudio depends on SDL2
find_package(SDL2) find_package(SDL2)
if (NOT SDL2_FOUND OR SDL2_VERSION VERSION_LESS 2.0.9) if (NOT SDL2_FOUND OR SDL2_VERSION VERSION_LESS 2.0.12)
message(FATAL_ERROR "-- RPCS3: FAudio requires SDL 2.0.9 or newer.") message(WARNING
endif() "-- RPCS3: FAudio requires SDL 2.0.9 or newer. Please note, this warning"
"can also be displayed with SDL2 versions between 2.0.9-2.0.12, as the"
"CMake config files are not correctly installed. Since a valid SDL2"
">=2.0.9 version cannot be found, building with FAudio will be skipped.")
set(USE_FAUDIO False)
else()
if (USE_SYSTEM_FAUDIO) if (USE_SYSTEM_FAUDIO)
message(STATUS "RPCS3: Using system FAudio") message(STATUS "RPCS3: Using system FAudio")
find_package(FAudio REQUIRED CONFIGS FAudio-config.cmake) find_package(FAudio REQUIRED CONFIGS FAudio-config.cmake)
@ -241,6 +246,7 @@ if(USE_FAUDIO)
target_compile_definitions(FAudio INTERFACE -DHAVE_FAUDIO) target_compile_definitions(FAudio INTERFACE -DHAVE_FAUDIO)
set(FAUDIO_TARGET FAudio) set(FAUDIO_TARGET FAudio)
endif() endif()
endif()
endif() endif()
# FFMPEG # FFMPEG