summaryrefslogtreecommitdiffstats
path: root/Modules/FindSDL_net.cmake
diff options
context:
space:
mode:
authorBenjamin Eikel <cmake@eikel.org>2012-09-04 15:20:37 (GMT)
committerBrad King <brad.king@kitware.com>2012-09-25 17:55:51 (GMT)
commit9ed24c5316fc4e9b56e3b491dee2f88b2cbb6f17 (patch)
tree333642cacca21bb289ece6af582ad6978349bcb0 /Modules/FindSDL_net.cmake
parent38a0f715745257fda16dd748d046fa549a9192d2 (diff)
downloadCMake-9ed24c5316fc4e9b56e3b491dee2f88b2cbb6f17.zip
CMake-9ed24c5316fc4e9b56e3b491dee2f88b2cbb6f17.tar.gz
CMake-9ed24c5316fc4e9b56e3b491dee2f88b2cbb6f17.tar.bz2
FindSDL: Remove from find_... calls PATHS that are set by default
Use PATH_SUFFIXES to add SDL parts to standard paths.
Diffstat (limited to 'Modules/FindSDL_net.cmake')
-rw-r--r--Modules/FindSDL_net.cmake22
1 files changed, 2 insertions, 20 deletions
diff --git a/Modules/FindSDL_net.cmake b/Modules/FindSDL_net.cmake
index 59a5d67..954c81d 100644
--- a/Modules/FindSDL_net.cmake
+++ b/Modules/FindSDL_net.cmake
@@ -36,32 +36,14 @@ find_path(SDL_NET_INCLUDE_DIR SDL_net.h
HINTS
ENV SDLNETDIR
ENV SDLDIR
- PATH_SUFFIXES include include/SDL
- PATHS
- ~/Library/Frameworks
- /Library/Frameworks
- /usr/local/include/SDL12
- /usr/local/include/SDL11 # FreeBSD ports
- /usr/include/SDL12
- /usr/include/SDL11
- /sw # Fink
- /opt/local # DarwinPorts
- /opt/csw # Blastwave
- /opt
+ PATH_SUFFIXES SDL SDL12 SDL11
)
+
find_library(SDL_NET_LIBRARY
NAMES SDL_net
HINTS
ENV SDLNETDIR
ENV SDLDIR
- PATH_SUFFIXES lib
- PATHS
- ~/Library/Frameworks
- /Library/Frameworks
- /sw
- /opt/local
- /opt/csw
- /opt
)
if(SDL_NET_INCLUDE_DIR AND EXISTS "${SDL_NET_INCLUDE_DIR}/SDL_net.h")