summaryrefslogtreecommitdiffstats
path: root/Modules/FindProducer.cmake
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2012-03-28 22:00:54 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2012-08-14 19:02:58 (GMT)
commitb04650e163320353762b6ec196afa9500345b5cd (patch)
tree1790b38ae7db75f232a27f4aa796d4441c68f009 /Modules/FindProducer.cmake
parentcd3bd23266a4a6c00595134a17a8bdaea9e28af5 (diff)
downloadCMake-b04650e163320353762b6ec196afa9500345b5cd.zip
CMake-b04650e163320353762b6ec196afa9500345b5cd.tar.gz
CMake-b04650e163320353762b6ec196afa9500345b5cd.tar.bz2
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/FindProducer.cmake')
-rw-r--r--Modules/FindProducer.cmake12
1 files changed, 6 insertions, 6 deletions
diff --git a/Modules/FindProducer.cmake b/Modules/FindProducer.cmake
index 20266cb..0de8532 100644
--- a/Modules/FindProducer.cmake
+++ b/Modules/FindProducer.cmake
@@ -44,9 +44,9 @@
# Try the user's environment request before anything else.
find_path(PRODUCER_INCLUDE_DIR Producer/CameraGroup
HINTS
- $ENV{PRODUCER_DIR}
- $ENV{OSG_DIR}
- $ENV{OSGDIR}
+ ENV PRODUCER_DIR
+ ENV OSG_DIR
+ ENV OSGDIR
PATH_SUFFIXES include
PATHS
~/Library/Frameworks
@@ -62,9 +62,9 @@ find_path(PRODUCER_INCLUDE_DIR Producer/CameraGroup
find_library(PRODUCER_LIBRARY
NAMES Producer
HINTS
- $ENV{PRODUCER_DIR}
- $ENV{OSG_DIR}
- $ENV{OSGDIR}
+ ENV PRODUCER_DIR
+ ENV OSG_DIR
+ ENV OSGDIR
PATH_SUFFIXES lib64 lib
PATHS
/sw