Improve USE_SDL3 option documentation and add clarifying comment

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-24 10:35:50 +00:00
parent 4ea38f7d3f
commit 72bbea3caa

View File

@@ -51,7 +51,7 @@ if(ENABLE_CLANG_TIDY)
endif()
endif()
option(BUILD_SDL3_APP "Build the SDL3 Vulkan demo" ON)
option(USE_SDL3 "Use SDL3 instead of SDL2" ON)
option(USE_SDL3 "Use SDL3 instead of SDL2 for both the demo and tests" ON)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
@@ -74,6 +74,7 @@ if(BUILD_SDL3_APP)
find_package(Vulkan REQUIRED)
endif()
# SDL is required for both the demo app and cube_script_tests (used by audio_player)
if(USE_SDL3)
find_package(SDL3 CONFIG REQUIRED)
set(SDL_TARGET SDL3::SDL3)