diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2012-03-29 00:00:54 +0200 |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2012-08-14 21:02:58 +0200 |
commit | b04650e163320353762b6ec196afa9500345b5cd (patch) | |
tree | 1790b38ae7db75f232a27f4aa796d4441c68f009 /Modules/FindSDL_image.cmake | |
parent | cd3bd23266a4a6c00595134a17a8bdaea9e28af5 (diff) | |
download | cmake-b04650e163320353762b6ec196afa9500345b5cd.tar.gz |
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.
Diffstat (limited to 'Modules/FindSDL_image.cmake')
-rw-r--r-- | Modules/FindSDL_image.cmake | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/FindSDL_image.cmake b/Modules/FindSDL_image.cmake index 3c1f7a00ef..170df07523 100644 --- a/Modules/FindSDL_image.cmake +++ b/Modules/FindSDL_image.cmake @@ -27,8 +27,8 @@ find_path(SDLIMAGE_INCLUDE_DIR SDL_image.h HINTS - $ENV{SDLIMAGEDIR} - $ENV{SDLDIR} + ENV SDLIMAGEDIR + ENV SDLDIR PATH_SUFFIXES include PATHS ~/Library/Frameworks @@ -52,8 +52,8 @@ find_path(SDLIMAGE_INCLUDE_DIR SDL_image.h find_library(SDLIMAGE_LIBRARY NAMES SDL_image HINTS - $ENV{SDLIMAGEDIR} - $ENV{SDLDIR} + ENV SDLIMAGEDIR + ENV SDLDIR PATH_SUFFIXES lib64 lib PATHS ~/Library/Frameworks |