FindSDL: Restore accidentally dropped search paths (#13651)
Cleanup in commit 9ed24c53
(FindSDL: Remove from find_... calls PATHS
that are set by default, 2012-09-04) accidentally dropped some search
paths. Restore the dropped PATH_SUFFIXES and add more suffixes needed
to search paths that were previously hard-coded.
Reported-by: Gino van den Bergen <gino@dtecta.com>
This commit is contained in:
parent
68c6b134d0
commit
7cb5173969
|
@ -70,7 +70,7 @@
|
||||||
find_path(SDL_INCLUDE_DIR SDL.h
|
find_path(SDL_INCLUDE_DIR SDL.h
|
||||||
HINTS
|
HINTS
|
||||||
ENV SDLDIR
|
ENV SDLDIR
|
||||||
PATH_SUFFIXES SDL SDL12 SDL11
|
PATH_SUFFIXES include/SDL include/SDL12 include/SDL11 include
|
||||||
)
|
)
|
||||||
|
|
||||||
# SDL-1.1 is the name used by FreeBSD ports...
|
# SDL-1.1 is the name used by FreeBSD ports...
|
||||||
|
@ -79,6 +79,7 @@ find_library(SDL_LIBRARY_TEMP
|
||||||
NAMES SDL SDL-1.1
|
NAMES SDL SDL-1.1
|
||||||
HINTS
|
HINTS
|
||||||
ENV SDLDIR
|
ENV SDLDIR
|
||||||
|
PATH_SUFFIXES lib
|
||||||
)
|
)
|
||||||
|
|
||||||
if(NOT SDL_BUILDING_LIBRARY)
|
if(NOT SDL_BUILDING_LIBRARY)
|
||||||
|
|
Loading…
Reference in New Issue