Skip to content

Commit 4b2b202

Browse files
authored
Merge branch 'main' into max/rename-sandbox-token-source
2 parents 2158b7e + 707239a commit 4b2b202

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

cmake/ExampleDeps.cmake

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,10 @@ if(NOT TARGET nlohmann_json::nlohmann_json)
1010
endif()
1111

1212
find_package(SDL3 CONFIG QUIET)
13-
set(_need_sdl3_fetch TRUE)
14-
if(TARGET SDL3::SDL3)
15-
get_target_property(_sdl3_include_dirs SDL3::SDL3 INTERFACE_INCLUDE_DIRECTORIES)
16-
if(_sdl3_include_dirs)
17-
set(_need_sdl3_fetch FALSE)
18-
endif()
19-
endif()
20-
21-
if(_need_sdl3_fetch)
13+
if(NOT TARGET SDL3::SDL3)
2214
FetchContent_Declare(
2315
SDL3
2416
URL https://github.com/libsdl-org/SDL/releases/download/release-3.2.26/SDL3-3.2.26.tar.gz
2517
)
2618
FetchContent_MakeAvailable(SDL3)
2719
endif()
28-
29-
unset(_need_sdl3_fetch)
30-
unset(_sdl3_include_dirs)

0 commit comments

Comments
 (0)