mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 22:31:18 -05:00
BUG#682: Adding environment variable check to FIND_PACKAGE command.
This commit is contained in:
@@ -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}
|
||||
|
||||
|
||||
@@ -65,6 +65,9 @@ IF(NOT VTK_DIR)
|
||||
# Support legacy cache files.
|
||||
${VTK_DIR_SEARCH_LEGACY}
|
||||
|
||||
# Look for an environment variable VTK_DIR.
|
||||
$ENV{VTK_DIR}
|
||||
|
||||
# Look in places relative to the system executable search path.
|
||||
${VTK_DIR_SEARCH}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user