diff options
author | Benjamin Eikel <cmake@eikel.org> | 2012-09-23 11:53:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-09-25 17:56:04 (GMT) |
commit | 68c6b134d0d994cacda7aa3cb92e930df42d6e23 (patch) | |
tree | 31660c1b67e7eb2f5ab18f44c46ccdbda8a19c3a /Modules/FindSDL_mixer.cmake | |
parent | 9ed24c5316fc4e9b56e3b491dee2f88b2cbb6f17 (diff) | |
download | CMake-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_mixer.cmake')
-rw-r--r-- | Modules/FindSDL_mixer.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Modules/FindSDL_mixer.cmake b/Modules/FindSDL_mixer.cmake index 61fe1ae..666fc6e 100644 --- a/Modules/FindSDL_mixer.cmake +++ b/Modules/FindSDL_mixer.cmake @@ -32,6 +32,10 @@ # (To distribute this file outside of CMake, substitute the full # License text for the above reference.) +if(NOT SDL_MIXER_INCLUDE_DIR AND SDLMIXER_INCLUDE_DIR) + set(SDL_MIXER_INCLUDE_DIR ${SDLMIXER_INCLUDE_DIR} CACHE PATH "directory cache +entry initialized from old variable name") +endif() find_path(SDL_MIXER_INCLUDE_DIR SDL_mixer.h HINTS ENV SDLMIXERDIR @@ -39,6 +43,10 @@ find_path(SDL_MIXER_INCLUDE_DIR SDL_mixer.h PATH_SUFFIXES SDL SDL12 SDL11 ) +if(NOT SDL_MIXER_LIBRARY AND SDLMIXER_LIBRARY) + set(SDL_MIXER_LIBRARY ${SDLMIXER_LIBRARY} CACHE FILEPATH "file cache entry +initialized from old variable name") +endif() find_library(SDL_MIXER_LIBRARY NAMES SDL_mixer HINTS |