There was an error while loading. Please reload this page.
2 parents 2158b7e + 707239a commit 4b2b202Copy full SHA for 4b2b202
1 file changed
cmake/ExampleDeps.cmake
@@ -10,21 +10,10 @@ if(NOT TARGET nlohmann_json::nlohmann_json)
10
endif()
11
12
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)
+if(NOT TARGET SDL3::SDL3)
22
FetchContent_Declare(
23
SDL3
24
URL https://github.com/libsdl-org/SDL/releases/download/release-3.2.26/SDL3-3.2.26.tar.gz
25
)
26
FetchContent_MakeAvailable(SDL3)
27
28
29
-unset(_need_sdl3_fetch)
30
-unset(_sdl3_include_dirs)
0 commit comments