summaryrefslogtreecommitdiffstats
path: root/Modules/FindITK.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2004-04-26 15:00:41 (GMT)
committerBrad King <brad.king@kitware.com>2004-04-26 15:00:41 (GMT)
commit7c0844d2f4f98d40bc4bb7be89cc75740506db3c (patch)
treedbc501552f9d74a09125245219752403c4893bb2 /Modules/FindITK.cmake
parentb6f7e08242fd95fb979ac780c0bb02b5f32374a9 (diff)
downloadCMake-7c0844d2f4f98d40bc4bb7be89cc75740506db3c.zip
CMake-7c0844d2f4f98d40bc4bb7be89cc75740506db3c.tar.gz
CMake-7c0844d2f4f98d40bc4bb7be89cc75740506db3c.tar.bz2
BUG#682: Adding environment variable check to FIND_PACKAGE command.
Diffstat (limited to 'Modules/FindITK.cmake')
-rw-r--r--Modules/FindITK.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/FindITK.cmake b/Modules/FindITK.cmake
index 12d27c6..40c321b 100644
--- a/Modules/FindITK.cmake
+++ b/Modules/FindITK.cmake
@@ -45,6 +45,9 @@ IF(NOT ITK_DIR)
# Look for an installation or build tree.
#
FIND_PATH(ITK_DIR ITKConfig.cmake
+ # Look for an environment variable ITK_DIR.
+ $ENV{ITK_DIR}
+
# Look in places relative to the system executable search path.
${ITK_DIR_SEARCH}