diff options
author | Benjamin Eikel <cmake@eikel.org> | 2012-09-04 14:03:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-09-25 17:52:18 (GMT) |
commit | c10b69152cd0ae34c45a70bd65771eb2aba7fcb6 (patch) | |
tree | efd39a870d2fec1ce3fc053a271c6af3ebe0cc7d /Modules/FindSDL_mixer.cmake | |
parent | 03dd6cc4ffb2ac00f774fe24c5b0721b371d3c91 (diff) | |
download | CMake-c10b69152cd0ae34c45a70bd65771eb2aba7fcb6.zip CMake-c10b69152cd0ae34c45a70bd65771eb2aba7fcb6.tar.gz CMake-c10b69152cd0ae34c45a70bd65771eb2aba7fcb6.tar.bz2 |
FindSDL: Use SDL_MIXER prefix for variables
Diffstat (limited to 'Modules/FindSDL_mixer.cmake')
-rw-r--r-- | Modules/FindSDL_mixer.cmake | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/Modules/FindSDL_mixer.cmake b/Modules/FindSDL_mixer.cmake index 97a8330..8e9fce6 100644 --- a/Modules/FindSDL_mixer.cmake +++ b/Modules/FindSDL_mixer.cmake @@ -25,7 +25,7 @@ # (To distribute this file outside of CMake, substitute the full # License text for the above reference.) -find_path(SDLMIXER_INCLUDE_DIR SDL_mixer.h +find_path(SDL_MIXER_INCLUDE_DIR SDL_mixer.h HINTS ENV SDLMIXERDIR ENV SDLDIR @@ -43,7 +43,7 @@ find_path(SDLMIXER_INCLUDE_DIR SDL_mixer.h /opt ) -find_library(SDLMIXER_LIBRARY +find_library(SDL_MIXER_LIBRARY NAMES SDL_mixer HINTS ENV SDLMIXERDIR @@ -58,7 +58,17 @@ find_library(SDLMIXER_LIBRARY /opt ) +set(SDL_MIXER_LIBRARIES ${SDL_MIXER_LIBRARY}) +set(SDL_MIXER_INCLUDE_DIRS ${SDL_MIXER_INCLUDE_DIR}) + include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake) -FIND_PACKAGE_HANDLE_STANDARD_ARGS(SDLMIXER - REQUIRED_VARS SDLMIXER_LIBRARY SDLMIXER_INCLUDE_DIR) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(SDL_mixer + REQUIRED_VARS SDL_MIXER_LIBRARIES SDL_MIXER_INCLUDE_DIRS) + +# for backward compatiblity +set(SDLMIXER_LIBRARY ${SDL_MIXER_LIBRARIES}) +set(SDLMIXER_INCLUDE_DIR ${SDL_MIXER_INCLUDE_DIRS}) +set(SDLMIXER_FOUND ${SDL_MIXER_FOUND}) + +mark_as_advanced(SDL_MIXER_LIBRARY SDL_MIXER_INCLUDE_DIR) |