From cec195b136935aaaa2f24f0f1bdb7f640bc5f353 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 24 Mar 2026 20:49:03 +0100 Subject: [PATCH] Platform: update Sdl2Application CMake subproject snippet. Disabling SDL_AUDIO seems to work with 2.32.10, so if there was a bug it no longer seems to be. On the other hand, SDL_EVENTS is something the application implementation does need, so I'm not sure why I even attempted disabling those. --- src/Magnum/Platform/Sdl2Application.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Magnum/Platform/Sdl2Application.h b/src/Magnum/Platform/Sdl2Application.h index 8a2040d9c..b022bff46 100644 --- a/src/Magnum/Platform/Sdl2Application.h +++ b/src/Magnum/Platform/Sdl2Application.h @@ -244,13 +244,12 @@ necessary. @code{.cmake} # This is the most minimal set of features which still make Sdl2Application -# work. If you need something from these, remove the setting. The SDL_AUDIO and -# SDL_EVENT options should not be needed either as Magnum doesn't use them, but -# if they're disabled they causes compiler or linker errors. Either SDL_DLOPEN +# work. If you need something from these, remove the setting. Either SDL_DLOPEN # or SDL_LOADSO needs to be enabled depending on the system to allow linking # dependencies at runtime, so it's better to just leave them both on. The # SDL_TIMERS option is important for rendering performance. set(SDL_ATOMIC OFF CACHE BOOL "" FORCE) +set(SDL_AUDIO OFF CACHE BOOL "" FORCE) set(SDL_CPUINFO OFF CACHE BOOL "" FORCE) set(SDL_FILE OFF CACHE BOOL "" FORCE) set(SDL_FILESYSTEM OFF CACHE BOOL "" FORCE)