Skip to content

Commit 95e191b

Browse files
committed
another try on fixing cmake
1 parent c6071e6 commit 95e191b

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

cmake/sdl3.cmake

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ if(NOT SDL3_FOUND OR NOT SDL3_image_FOUND)
2323
SDL3
2424
URL https://github.com/libsdl-org/SDL/releases/download/release-3.4.2/SDL3-3.4.2.tar.gz
2525
URL_HASH SHA256=ef39a2e3f9a8a78296c40da701967dd1b0d0d6e267e483863ce70f8a03b4050c
26+
OVERRIDE_FIND_PACKAGE
2627
)
2728

2829
FetchContent_Declare(
@@ -32,10 +33,6 @@ if(NOT SDL3_FOUND OR NOT SDL3_image_FOUND)
3233
)
3334

3435
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-
3936
FetchContent_MakeAvailable(SDL3_image)
4037
endif()
4138

0 commit comments

Comments
 (0)