build: enable FAudio on non-Windows

Enable FAudio on non-Windows too if the cmake support is found.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
Rafael Kitover 2024-04-08 04:00:57 +00:00
parent 8ef9a66b74
commit b00e23f5b5
No known key found for this signature in database
GPG Key ID: 08AB596679D86240
1 changed files with 3 additions and 5 deletions

View File

@ -142,12 +142,10 @@ endif()
set(ENABLE_FAUDIO_DEFAULT OFF)
if(WIN32)
find_package(FAudio)
find_package(FAudio)
if(FAudio_FOUND)
if(FAudio_FOUND)
set(ENABLE_FAUDIO_DEFAULT ON)
endif()
endif()
option(ENABLE_FAUDIO "Enable FAudio sound output for the wxWidgets port" ${ENABLE_FAUDIO_DEFAULT})