From 52718dbbf2539335e8a70b80497ad99b615cbe98 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 15 Jan 2008 21:20:11 -0500 Subject: BUG: Remove references to CMAKE_PREFIX_PATH variable. It should not be referenced directly by FIND_* command calls. The commands search it automatically. --- Modules/FindSDL_image.cmake | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'Modules/FindSDL_image.cmake') diff --git a/Modules/FindSDL_image.cmake b/Modules/FindSDL_image.cmake index e1680eab92..e39b3cbc10 100644 --- a/Modules/FindSDL_image.cmake +++ b/Modules/FindSDL_image.cmake @@ -19,11 +19,7 @@ FIND_PATH(SDLIMAGE_INCLUDE_DIR SDL_image.h NO_DEFAULT_PATH PATH_SUFFIXES include ) -FIND_PATH(SDLIMAGE_INCLUDE_DIR SDL_image.h - PATHS ${CMAKE_PREFIX_PATH} # Unofficial: We are proposing this. - NO_DEFAULT_PATH - PATH_SUFFIXES include -) + FIND_PATH(SDLIMAGE_INCLUDE_DIR SDL_image.h PATHS ~/Library/Frameworks @@ -54,12 +50,7 @@ FIND_LIBRARY(SDLIMAGE_LIBRARY NO_DEFAULT_PATH PATH_SUFFIXES lib64 lib ) -FIND_LIBRARY(SDLIMAGE_LIBRARY - NAMES SDL_image - PATHS ${CMAKE_PREFIX_PATH} # Unofficial: We are proposing this. - NO_DEFAULT_PATH - PATH_SUFFIXES lib64 lib -) + FIND_LIBRARY(SDLIMAGE_LIBRARY NAMES SDL_image PATHS -- cgit v1.2.1