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/FindQuickTime.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Modules/FindQuickTime.cmake') diff --git a/Modules/FindQuickTime.cmake b/Modules/FindQuickTime.cmake index 57de737795..e4ade51ecb 100644 --- a/Modules/FindQuickTime.cmake +++ b/Modules/FindQuickTime.cmake @@ -32,12 +32,12 @@ else() find_path(QUICKTIME_INCLUDE_DIR QuickTime.h HINTS $ENV{QUICKTIME_DIR}/include - $ENV{QUICKTIME_DIR} + ENV QUICKTIME_DIR ) find_library(QUICKTIME_LIBRARY QuickTime HINTS $ENV{QUICKTIME_DIR}/lib - $ENV{QUICKTIME_DIR} + ENV QUICKTIME_DIR ) endif() -- cgit v1.2.1