From c5c217c6b53b035303747a2971b1b80be5391566 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 8 Oct 2013 10:07:03 -0400 Subject: FindSDL: Add path suffixes for /include/(SDL|SDL12|SDL11) Also add a comment explaining the purpose of the include/SDL* path suffixes. As explained in commit 7cb51739 (FindSDL: Restore accidentally dropped search paths (#13651), 2012-11-05) the include/SDL* path suffixes are for looking in the ENV{SDLDIR} location. Inspired-by: Adrien Destugues --- Modules/FindSDL.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Modules/FindSDL.cmake b/Modules/FindSDL.cmake index fec142e..a4f12ba 100644 --- a/Modules/FindSDL.cmake +++ b/Modules/FindSDL.cmake @@ -70,7 +70,9 @@ find_path(SDL_INCLUDE_DIR SDL.h HINTS ENV SDLDIR - PATH_SUFFIXES include/SDL include/SDL12 include/SDL11 include + PATH_SUFFIXES SDL SDL12 SDL11 + # path suffixes to search inside ENV{SDLDIR} + include/SDL include/SDL12 include/SDL11 include ) # SDL-1.1 is the name used by FreeBSD ports... -- cgit v0.12