Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
crueter 2025-08-21 14:22:38 -04:00
parent aa3c7ab251
commit 2d80c5165b
1 changed files with 1 additions and 3 deletions

View File

@ -678,8 +678,6 @@ endif()
# find SDL2 exports a bunch of variables that are needed, so its easier to do this outside of the YUZU_find_package
# TODO(crueter): combine this all with CPM.
if (ENABLE_SDL2)
message(STATUS "SDL2 enabled, fetching...")
if (YUZU_USE_BUNDLED_SDL2)
message(STATUS "Using bundled SDL2")
AddCIPackage(
@ -695,7 +693,7 @@ if (ENABLE_SDL2)
message(STATUS "Using SDL2 from externals.")
endif()
if (NOT YUZU_USE_EXTERNAL_SDL2)
if (YUZU_USE_BUNDLED_SDL2 OR NOT YUZU_USE_EXTERNAL_SDL2)
find_package(SDL2 2.26.4 REQUIRED)
endif()
endif()