Skip to content

Commit 618806a

Browse files
committed
Fix search path to cope with Windows SDL2 binary releases
On Windows, the upstream SDL2 binary releases place the libraries under lib/x64 or lib/x86 instead of just lib/. Add these to the search path.
1 parent 52524b8 commit 618806a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FindSDL2.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ FIND_LIBRARY(SDL2_LIBRARY_TEMP
9090
NAMES SDL2
9191
HINTS
9292
$ENV{SDL2DIR}
93-
PATH_SUFFIXES lib64 lib
93+
PATH_SUFFIXES lib64 lib lib/x64 lib/x86
9494
PATHS ${SDL2_SEARCH_PATHS}
9595
)
9696

0 commit comments

Comments
 (0)