Skip to content

Commit

Permalink
Enable sound on WASM and display a message when enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
lmoureaux committed Dec 25, 2023
1 parent 45542a6 commit 56cd642
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/FreecivDependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ endif()
# SDL2 for audio
find_package(SDL2)
find_package(SDL2_mixer)
if (SDL2_mixer_FOUND AND SDL2_FOUND)
if (EMSCRIPTEN OR (SDL2_mixer_FOUND AND SDL2_FOUND))
message(STATUS "Building with audio support enabled")
set(AUDIO_SDL TRUE)
endif()
if (NOT SDL2_FOUND)
Expand Down

0 comments on commit 56cd642

Please sign in to comment.