From e95f7795c1f5dc035e28cd7ac99b7a57dff686c0 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Thu, 18 Dec 2025 17:27:48 -0700 Subject: [PATCH] Pin SDL3 to release 3.2.28 for Emscripten (#745) --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2228f02c..dd24f32a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -102,6 +102,14 @@ if (DOWNLOAD_DEPENDENCIES) EXCLUDE_FROM_ALL ) set(CMAKE_DISABLE_PRECOMPILE_HEADERS ON CACHE BOOL "Disable PCH globally" FORCE) + elseif (EMSCRIPTEN) + FetchContent_Declare( + SDL3 + GIT_REPOSITORY "https://github.com/libsdl-org/SDL.git" + GIT_TAG "release-3.2.28" + UPDATE_DISCONNECTED TRUE + EXCLUDE_FROM_ALL + ) else() FetchContent_Declare( SDL3