Fix SDL2 detection

Per #5389 (Comment)
Recommended by @PhysSong 
Adopted from upstream SDL1 patch c5c217c6b5
This commit is contained in:
Tres Finocchiaro
2020-03-11 11:55:33 -04:00
committed by GitHub
parent 4dc26d1aab
commit 0196f31509

View File

@@ -82,7 +82,7 @@ SET(SDL2_SEARCH_PATHS
FIND_PATH(SDL2_INCLUDE_DIR SDL.h
HINTS
$ENV{SDL2DIR}
PATH_SUFFIXES include/SDL2 include
PATH_SUFFIXES SDL2 include/SDL2 include
PATHS ${SDL2_SEARCH_PATHS}
)