From 20dc48eb8127f338259e69565afb4e601e491066 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Thu, 18 Dec 2025 16:45:00 -0700 Subject: [PATCH] Pin SDL3 to release 3.2.28 for Emscripten --- 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