summaryrefslogtreecommitdiff
path: root/Modules/FindSDL_mixer.cmake
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2012-03-29 00:51:06 +0200
committerRolf Eike Beer <eike@sf-mail.de>2012-08-14 21:03:23 +0200
commitcfe4ac4b417b80fb657c8de3b43a29e12a558d82 (patch)
tree6ca43a847abcf2e4687f5d00e10673b9e429d5e4 /Modules/FindSDL_mixer.cmake
parentb04650e163320353762b6ec196afa9500345b5cd (diff)
downloadcmake-cfe4ac4b417b80fb657c8de3b43a29e12a558d82.tar.gz
use PATH_SUFFIXES to simplify find_* calls
Especially remove "lib64" when the given paths are all Unix ones and "lib" is also explicitely given. In that case CMake will search "lib64" anyway for platforms where it is known to make sense.
Diffstat (limited to 'Modules/FindSDL_mixer.cmake')
-rw-r--r--Modules/FindSDL_mixer.cmake18
1 files changed, 6 insertions, 12 deletions
diff --git a/Modules/FindSDL_mixer.cmake b/Modules/FindSDL_mixer.cmake
index a3f24ec56b..97a83300b3 100644
--- a/Modules/FindSDL_mixer.cmake
+++ b/Modules/FindSDL_mixer.cmake
@@ -29,24 +29,18 @@ find_path(SDLMIXER_INCLUDE_DIR SDL_mixer.h
HINTS
ENV SDLMIXERDIR
ENV SDLDIR
- PATH_SUFFIXES include
+ PATH_SUFFIXES include include/SDL
PATHS
~/Library/Frameworks
/Library/Frameworks
- /usr/local/include/SDL
- /usr/include/SDL
/usr/local/include/SDL12
/usr/local/include/SDL11 # FreeBSD ports
/usr/include/SDL12
/usr/include/SDL11
- /sw/include/SDL # Fink
- /sw/include
- /opt/local/include/SDL # DarwinPorts
- /opt/local/include
- /opt/csw/include/SDL # Blastwave
- /opt/csw/include
- /opt/include/SDL
- /opt/include
+ /sw # Fink
+ /opt/local # DarwinPorts
+ /opt/csw # Blastwave
+ /opt
)
find_library(SDLMIXER_LIBRARY
@@ -54,7 +48,7 @@ find_library(SDLMIXER_LIBRARY
HINTS
ENV SDLMIXERDIR
ENV SDLDIR
- PATH_SUFFIXES lib64 lib
+ PATH_SUFFIXES lib
PATHS
~/Library/Frameworks
/Library/Frameworks