From b04650e163320353762b6ec196afa9500345b5cd Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Thu, 29 Mar 2012 00:00:54 +0200 Subject: use the find_* functions ENV parameter Instead of directly passing $ENV{SOMEVAR} to a find_* call pass in ENV SOMEVAR. This will make sure the paths will get correctly handled through different platforms, especially on Windows. Also fixes one place where paths with windows delimiters (\) were hardcoded to use forward slashes. --- Modules/FindSDL.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Modules/FindSDL.cmake') diff --git a/Modules/FindSDL.cmake b/Modules/FindSDL.cmake index 806b6596dd..bd36798ee9 100644 --- a/Modules/FindSDL.cmake +++ b/Modules/FindSDL.cmake @@ -67,7 +67,7 @@ find_path(SDL_INCLUDE_DIR SDL.h HINTS - $ENV{SDLDIR} + ENV SDLDIR PATH_SUFFIXES include/SDL include PATHS ~/Library/Frameworks @@ -87,7 +87,7 @@ find_path(SDL_INCLUDE_DIR SDL.h find_library(SDL_LIBRARY_TEMP NAMES SDL SDL-1.1 HINTS - $ENV{SDLDIR} + ENV SDLDIR PATH_SUFFIXES lib64 lib PATHS /sw @@ -105,7 +105,7 @@ if(NOT SDL_BUILDING_LIBRARY) find_library(SDLMAIN_LIBRARY NAMES SDLmain SDLmain-1.1 HINTS - $ENV{SDLDIR} + ENV SDLDIR PATH_SUFFIXES lib64 lib PATHS /sw -- cgit v1.2.1