Skip to content

Commit

Permalink
Avoid confusing message about audio on emscripten
Browse files Browse the repository at this point in the history
  • Loading branch information
lmoureaux committed Dec 25, 2023
1 parent 56cd642 commit e026024
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions cmake/FreecivDependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,13 @@ find_package(SDL2_mixer)
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)
message(STATUS "SDL2 not found - audio support disabled")
endif()
if (NOT SDL2_mixer_FOUND)
message(STATUS "SDL2_mixer not found - audio support disabled")
else()
if (NOT SDL2_FOUND)
message(STATUS "SDL2 not found - audio support disabled")
endif()
if (NOT SDL2_mixer_FOUND)
message(STATUS "SDL2_mixer not found - audio support disabled")
endif()
endif()

# Lua
Expand Down

0 comments on commit e026024

Please sign in to comment.