summaryrefslogtreecommitdiffstats
path: root/Modules/FindSDL.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-01-16 02:20:11 (GMT)
committerBrad King <brad.king@kitware.com>2008-01-16 02:20:11 (GMT)
commit52718dbbf2539335e8a70b80497ad99b615cbe98 (patch)
tree423c999dd7c84e2ad452a360acc91b6f881aa664 /Modules/FindSDL.cmake
parent80c2be45e0b1701406e3739bb8a0a8fcad949f69 (diff)
downloadCMake-52718dbbf2539335e8a70b80497ad99b615cbe98.zip
CMake-52718dbbf2539335e8a70b80497ad99b615cbe98.tar.gz
CMake-52718dbbf2539335e8a70b80497ad99b615cbe98.tar.bz2
BUG: Remove references to CMAKE_PREFIX_PATH variable. It should not be referenced directly by FIND_* command calls. The commands search it automatically.
Diffstat (limited to 'Modules/FindSDL.cmake')
-rw-r--r--Modules/FindSDL.cmake20
1 files changed, 3 insertions, 17 deletions
diff --git a/Modules/FindSDL.cmake b/Modules/FindSDL.cmake
index c25e13c..64d4262 100644
--- a/Modules/FindSDL.cmake
+++ b/Modules/FindSDL.cmake
@@ -58,11 +58,7 @@ FIND_PATH(SDL_INCLUDE_DIR SDL.h
NO_DEFAULT_PATH
PATH_SUFFIXES include
)
-FIND_PATH(SDL_INCLUDE_DIR SDL.h
- PATHS ${CMAKE_PREFIX_PATH} # Unofficial: We are proposing this.
- NO_DEFAULT_PATH
- PATH_SUFFIXES include
-)
+
FIND_PATH(SDL_INCLUDE_DIR SDL.h
PATHS
~/Library/Frameworks
@@ -95,12 +91,7 @@ FIND_LIBRARY(SDL_LIBRARY_TEMP
NO_DEFAULT_PATH
PATH_SUFFIXES lib64 lib
)
-FIND_LIBRARY(SDL_LIBRARY_TEMP
- NAMES SDL SDL-1.1
- PATHS ${CMAKE_PREFIX_PATH} # Unofficial: We are proposing this.
- NO_DEFAULT_PATH
- PATH_SUFFIXES lib64 lib
-)
+
FIND_LIBRARY(SDL_LIBRARY_TEMP
NAMES SDL SDL-1.1
PATHS
@@ -128,12 +119,7 @@ IF(NOT SDL_BUILDING_LIBRARY)
NO_DEFAULT_PATH
PATH_SUFFIXES lib64 lib
)
- FIND_LIBRARY(SDLMAIN_LIBRARY
- NAMES SDLmain SDLmain-1.1
- PATHS ${CMAKE_PREFIX_PATH} # Unofficial: We are proposing this.
- NO_DEFAULT_PATH
- PATH_SUFFIXES lib64 lib
- )
+
FIND_LIBRARY(SDLMAIN_LIBRARY
NAMES SDLmain SDLmain-1.1
PATHS