mirror of
https://github.com/johndoe6345789/SDL3CPlusPlus.git
synced 2026-04-25 14:15:02 +00:00
Improve USE_SDL3 option documentation and add clarifying comment
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user