From cfe4ac4b417b80fb657c8de3b43a29e12a558d82 Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Thu, 29 Mar 2012 00:51:06 +0200 Subject: 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. --- Modules/FindSDL.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Modules/FindSDL.cmake') diff --git a/Modules/FindSDL.cmake b/Modules/FindSDL.cmake index bd36798ee9..487c5d3460 100644 --- a/Modules/FindSDL.cmake +++ b/Modules/FindSDL.cmake @@ -88,7 +88,7 @@ find_library(SDL_LIBRARY_TEMP NAMES SDL SDL-1.1 HINTS ENV SDLDIR - PATH_SUFFIXES lib64 lib + PATH_SUFFIXES lib PATHS /sw /opt/local @@ -106,7 +106,7 @@ if(NOT SDL_BUILDING_LIBRARY) NAMES SDLmain SDLmain-1.1 HINTS ENV SDLDIR - PATH_SUFFIXES lib64 lib + PATH_SUFFIXES lib PATHS /sw /opt/local -- cgit v1.2.1