summaryrefslogtreecommitdiffstats
path: root/Modules/FindSDL_ttf.cmake
diff options
context:
space:
mode:
authorBenjamin Eikel <cmake@eikel.org>2012-09-23 11:53:23 (GMT)
committerBrad King <brad.king@kitware.com>2012-09-25 17:56:04 (GMT)
commit68c6b134d0d994cacda7aa3cb92e930df42d6e23 (patch)
tree31660c1b67e7eb2f5ab18f44c46ccdbda8a19c3a /Modules/FindSDL_ttf.cmake
parent9ed24c5316fc4e9b56e3b491dee2f88b2cbb6f17 (diff)
downloadCMake-68c6b134d0d994cacda7aa3cb92e930df42d6e23.zip
CMake-68c6b134d0d994cacda7aa3cb92e930df42d6e23.tar.gz
CMake-68c6b134d0d994cacda7aa3cb92e930df42d6e23.tar.bz2
FindSDL: Stay compatible with old input variables
Suggested-by: David Cole <david.cole@kitware.com>
Diffstat (limited to 'Modules/FindSDL_ttf.cmake')
-rw-r--r--Modules/FindSDL_ttf.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/Modules/FindSDL_ttf.cmake b/Modules/FindSDL_ttf.cmake
index c8b7a77..2cc5ee2 100644
--- a/Modules/FindSDL_ttf.cmake
+++ b/Modules/FindSDL_ttf.cmake
@@ -32,6 +32,10 @@
# (To distribute this file outside of CMake, substitute the full
# License text for the above reference.)
+if(NOT SDL_TTF_INCLUDE_DIR AND SDLTTF_INCLUDE_DIR)
+ set(SDL_TTF_INCLUDE_DIR ${SDLTTF_INCLUDE_DIR} CACHE PATH "directory cache
+entry initialized from old variable name")
+endif()
find_path(SDL_TTF_INCLUDE_DIR SDL_ttf.h
HINTS
ENV SDLTTFDIR
@@ -39,6 +43,10 @@ find_path(SDL_TTF_INCLUDE_DIR SDL_ttf.h
PATH_SUFFIXES SDL SDL12 SDL11
)
+if(NOT SDL_TTF_LIBRARY AND SDLTTF_LIBRARY)
+ set(SDL_TTF_LIBRARY ${SDLTTF_LIBRARY} CACHE FILEPATH "file cache entry
+initialized from old variable name")
+endif()
find_library(SDL_TTF_LIBRARY
NAMES SDL_ttf
HINTS