summaryrefslogtreecommitdiffstats
path: root/Modules/FindSDL.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-10-08 14:07:03 (GMT)
committerBrad King <brad.king@kitware.com>2013-10-08 14:09:17 (GMT)
commitc5c217c6b53b035303747a2971b1b80be5391566 (patch)
tree134de2920b948211b4f4ac10d23745f658f9b6a6 /Modules/FindSDL.cmake
parentd4134352abf69374fdad24d53d67734a135daaa5 (diff)
downloadCMake-c5c217c6b53b035303747a2971b1b80be5391566.zip
CMake-c5c217c6b53b035303747a2971b1b80be5391566.tar.gz
CMake-c5c217c6b53b035303747a2971b1b80be5391566.tar.bz2
FindSDL: Add path suffixes for <prefix>/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 <pulkomandy@pulkomandy.tk>
Diffstat (limited to 'Modules/FindSDL.cmake')
-rw-r--r--Modules/FindSDL.cmake4
1 files changed, 3 insertions, 1 deletions
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...