support building with system faudio 21.08+ (#10708)

This commit is contained in:
Lctrs 2021-08-15 21:37:05 +02:00 committed by GitHub
parent aa48bd91f4
commit 24d7374a22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -234,7 +234,7 @@ if(USE_FAUDIO)
else()
if (USE_SYSTEM_FAUDIO)
message(STATUS "RPCS3: Using system FAudio")
find_package(FAudio REQUIRED CONFIGS FAudio-config.cmake)
find_package(FAudio REQUIRED CONFIGS FAudioConfig.cmake FAudio-config.cmake)
add_library(3rdparty_FAudio INTERFACE)
target_link_libraries(3rdparty_FAudio INTERFACE FAudio)
target_compile_definitions(3rdparty_FAudio INTERFACE -DHAVE_FAUDIO)