summaryrefslogtreecommitdiffstats
path: root/Modules/FindVTK.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/FindVTK.cmake')
-rw-r--r--Modules/FindVTK.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/FindVTK.cmake b/Modules/FindVTK.cmake
index d2acc9a..519815f 100644
--- a/Modules/FindVTK.cmake
+++ b/Modules/FindVTK.cmake
@@ -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}