Skip to content

Commit c6071e6

Browse files
committed
cmake fix
1 parent 5e9552b commit c6071e6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cmake/sdl3.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ if(NOT SDL3_FOUND OR NOT SDL3_image_FOUND)
3232
)
3333

3434
FetchContent_MakeAvailable(SDL3)
35+
36+
# Ensure SDL3_image can find the SDL3 we just built
37+
set(SDL3_DIR "${sdl3_BINARY_DIR}" CACHE PATH "Path to SDL3 build" FORCE)
38+
3539
FetchContent_MakeAvailable(SDL3_image)
3640
endif()
3741

0 commit comments

Comments
 (0)