From e026024f21dfa8fe3aca9c5c1fd65c6b8815604d Mon Sep 17 00:00:00 2001 From: Louis Moureaux Date: Sun, 24 Dec 2023 01:36:03 +0100 Subject: [PATCH] Avoid confusing message about audio on emscripten --- cmake/FreecivDependencies.cmake | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/cmake/FreecivDependencies.cmake b/cmake/FreecivDependencies.cmake index bc7978608f..ebf8137080 100644 --- a/cmake/FreecivDependencies.cmake +++ b/cmake/FreecivDependencies.cmake @@ -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