From 7baedc3ec4f3eab131e4a6c9def28d23433a62f4 Mon Sep 17 00:00:00 2001 From: Martino Fontana Date: Tue, 2 Jan 2024 11:24:13 +0100 Subject: [PATCH] CMake: Enable SDL on Linux by default --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 843f062861..88e8f4a8f5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -124,8 +124,8 @@ option(OPROFILING "Enable profiling" OFF) # TODO: Add DSPSpy option(DSPTOOL "Build dsptool" OFF) -# Enable SDL for default on operating systems that aren't Android or Linux. -if(NOT ANDROID AND NOT CMAKE_SYSTEM_NAME STREQUAL "Linux") +# Enable SDL by default on operating systems that aren't Android. +if(NOT ANDROID) option(ENABLE_SDL "Enables SDL as a generic controller backend" ON) else() option(ENABLE_SDL "Enables SDL as a generic controller backend" OFF)