Qt: Allow building on unix without SDL video support.

This commit is contained in:
BearOso 2024-12-13 19:12:54 -06:00
parent 959da2aa04
commit 73b71c865b
1 changed files with 3 additions and 0 deletions

View File

@ -154,6 +154,9 @@ else()
../external/glad/src/egl.c) ../external/glad/src/egl.c)
endif() endif()
if(NOT (${CMAKE_SYSTEM_NAME} STREQUAL "Windows"))
set(SDL_UNIX_CONSOLE_BUILD BOOL ON FORCE)
endif()
set(SDL_GPU CACHE BOOL OFF FORCE) set(SDL_GPU CACHE BOOL OFF FORCE)
set(SDL_VIDEO CACHE BOOL OFF FORCE) set(SDL_VIDEO CACHE BOOL OFF FORCE)
set(SDL_RENDER CACHE BOOL OFF FORCE) set(SDL_RENDER CACHE BOOL OFF FORCE)