From 73b71c865bc816fdd666edf0d6f6d080505d88fd Mon Sep 17 00:00:00 2001 From: BearOso Date: Fri, 13 Dec 2024 19:12:54 -0600 Subject: [PATCH] Qt: Allow building on unix without SDL video support. --- qt/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qt/CMakeLists.txt b/qt/CMakeLists.txt index e632f606..3008abda 100644 --- a/qt/CMakeLists.txt +++ b/qt/CMakeLists.txt @@ -154,6 +154,9 @@ else() ../external/glad/src/egl.c) 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_VIDEO CACHE BOOL OFF FORCE) set(SDL_RENDER CACHE BOOL OFF FORCE)