Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions cmake/ExampleDeps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,10 @@ if(NOT TARGET nlohmann_json::nlohmann_json)
endif()

find_package(SDL3 CONFIG QUIET)
set(_need_sdl3_fetch TRUE)
if(TARGET SDL3::SDL3)
get_target_property(_sdl3_include_dirs SDL3::SDL3 INTERFACE_INCLUDE_DIRECTORIES)
if(_sdl3_include_dirs)
set(_need_sdl3_fetch FALSE)
endif()
endif()

if(_need_sdl3_fetch)
if(NOT TARGET SDL3::SDL3)
FetchContent_Declare(
SDL3
URL https://github.com/libsdl-org/SDL/releases/download/release-3.2.26/SDL3-3.2.26.tar.gz
)
FetchContent_MakeAvailable(SDL3)
endif()

unset(_need_sdl3_fetch)
unset(_sdl3_include_dirs)
Loading