build: do not build SDL bin on Windows or macOS

Stop enabling the SDL binary by default on Windows or macOS because it
usually only of interest to Linux users.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
Rafael Kitover 2024-05-08 12:53:52 +00:00
parent df89beb256
commit fc82e06270
No known key found for this signature in database
GPG Key ID: 08AB596679D86240
1 changed files with 6 additions and 1 deletions

View File

@ -8,7 +8,12 @@ else()
set(BUILD_DEFAULT ON) set(BUILD_DEFAULT ON)
endif() endif()
option(ENABLE_SDL "Build the SDL port" ${BUILD_DEFAULT}) set(ENABLE_SDL_DEFAULT ${BUILD_DEFAULT})
if(WIN32 OR APPLE)
set(ENABLE_SDL_DEFAULT OFF)
endif()
option(ENABLE_SDL "Build the SDL port" ${ENABLE_SDL_DEFAULT})
option(ENABLE_WX "Build the wxWidgets port" ${BUILD_DEFAULT}) option(ENABLE_WX "Build the wxWidgets port" ${BUILD_DEFAULT})
option(ENABLE_DEBUGGER "Enable the debugger" ON) option(ENABLE_DEBUGGER "Enable the debugger" ON)
option(ENABLE_ASAN "Enable -fsanitize=address by default. Requires debug build with GCC/Clang" OFF) option(ENABLE_ASAN "Enable -fsanitize=address by default. Requires debug build with GCC/Clang" OFF)