diff options
author | Benjamin Eikel <cmake@eikel.org> | 2012-09-04 14:09:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-09-25 17:52:27 (GMT) |
commit | a28c24726bc4a7882bdd65604359cb545d49c69b (patch) | |
tree | f6fdccf38c13440abf142332ffda7144fb72e137 /Modules/FindSDL_ttf.cmake | |
parent | 9f5dbf4497c433217da2eaee89647584d9cbad67 (diff) | |
download | CMake-a28c24726bc4a7882bdd65604359cb545d49c69b.zip CMake-a28c24726bc4a7882bdd65604359cb545d49c69b.tar.gz CMake-a28c24726bc4a7882bdd65604359cb545d49c69b.tar.bz2 |
FindSDL: Use SDL_TTF prefix for variables
Diffstat (limited to 'Modules/FindSDL_ttf.cmake')
-rw-r--r-- | Modules/FindSDL_ttf.cmake | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/Modules/FindSDL_ttf.cmake b/Modules/FindSDL_ttf.cmake index 1e68ccf..3821b36 100644 --- a/Modules/FindSDL_ttf.cmake +++ b/Modules/FindSDL_ttf.cmake @@ -25,7 +25,7 @@ # (To distribute this file outside of CMake, substitute the full # License text for the above reference.) -find_path(SDLTTF_INCLUDE_DIR SDL_ttf.h +find_path(SDL_TTF_INCLUDE_DIR SDL_ttf.h HINTS ENV SDLTTFDIR ENV SDLDIR @@ -43,7 +43,7 @@ find_path(SDLTTF_INCLUDE_DIR SDL_ttf.h /opt ) -find_library(SDLTTF_LIBRARY +find_library(SDL_TTF_LIBRARY NAMES SDL_ttf HINTS ENV SDLTTFDIR @@ -58,7 +58,17 @@ find_library(SDLTTF_LIBRARY PATH_SUFFIXES lib ) +set(SDL_TTF_LIBRARIES ${SDL_TTF_LIBRARY}) +set(SDL_TTF_INCLUDE_DIRS ${SDL_TTF_INCLUDE_DIR}) + include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake) -FIND_PACKAGE_HANDLE_STANDARD_ARGS(SDLTTF - REQUIRED_VARS SDLTTF_LIBRARY SDLTTF_INCLUDE_DIR) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(SDL_ttf + REQUIRED_VARS SDL_TTF_LIBRARIES SDL_TTF_INCLUDE_DIRS) + +# for backward compatiblity +set(SDLTTF_LIBRARY ${SDL_TTF_LIBRARIES}) +set(SDLTTF_INCLUDE_DIR ${SDL_TTF_INCLUDE_DIRS}) +set(SDLTTF_FOUND ${SDL_TTF_FOUND}) + +mark_as_advanced(SDL_TTF_LIBRARY SDL_TTF_INCLUDE_DIR) |