From cb028bb3ac88064d3f857b7579d9b24cdaea51c9 Mon Sep 17 00:00:00 2001 From: Lyelye150 Date: Tue, 21 Oct 2025 17:57:15 -0400 Subject: [PATCH] added devkitpro wiiu-sdl2 --- CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f9059518..5f33ac86 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -99,6 +99,17 @@ if (DOWNLOAD_DEPENDENCIES) FetchContent_MakeAvailable(SDL3) endif() else() + if(WIIU) + FetchContent_Declare( + SDL2 + GIT_REPOSITORY "https://github.com/devkitPro/SDL.git" + GIT_TAG 3e4393af9e7e36a3f669a52505281555de538923 + EXCLUDE_FROM_ALL + ) +# set(SDL_STATIC ON CACHE BOOL "" FORCE) +# set(SDL_SHARED OFF CACHE BOOL "" FORCE) + FetchContent_MakeAvailable(SDL2) + else() FetchContent_Declare( SDL2 GIT_REPOSITORY "https://github.com/libsdl-org/SDL.git" @@ -108,6 +119,7 @@ if (DOWNLOAD_DEPENDENCIES) # set(SDL_STATIC ON CACHE BOOL "" FORCE) # set(SDL_SHARED OFF CACHE BOOL "" FORCE) FetchContent_MakeAvailable(SDL2) + endif() set(SDL2_INCLUDE_DIR ${SDL2_SOURCE_DIR}/include) add_subdirectory(3rdparty/sdl3-shim SYSTEM)