SDL: Properly disable SDL build if libsdl isn't found (fixes #3213)

This commit is contained in:
Vicki Pfau 2024-05-21 23:02:35 -07:00
parent 8b1efec116
commit 649be1b505
1 changed files with 1 additions and 0 deletions

View File

@ -40,6 +40,7 @@ endif()
if (NOT SDL2_FOUND AND NOT SDL_FOUND) if (NOT SDL2_FOUND AND NOT SDL_FOUND)
set(SDL_FOUND OFF PARENT_SCOPE) set(SDL_FOUND OFF PARENT_SCOPE)
set(BUILD_SDL OFF PARENT_SCOPE)
return() return()
endif() endif()