Browse Source

minor changes

Ken Martin 24 years ago
parent
commit
924cf69ec6
1 changed files with 8 additions and 8 deletions
  1. 8 8
      Modules/FindVTK.cmake

+ 8 - 8
Modules/FindVTK.cmake

@@ -3,9 +3,9 @@
 #
 # This module defines
 #
-# VTK_INSTALL_PATH - where is the installed version of VTK
-# VTK_SOURCE_PATH - where is VTK source code
-# VTK_BIN_PATH - where is the binary tree (only defined if SOURCE_PATH is defined)
+# VTK_INSTALL_DIR - where is the installed version of VTK
+# VTK_SOURCE_DIR - where is VTK source code
+# VTK_BINARY_DIR - where is the binary tree (only defined if SOURCE_PATH is defined)
 # USE_INSTALLED_VTK - sould an installed or source version of VTK be used
 #
 
@@ -15,7 +15,7 @@
 #
 # look in the cmake list of recent source and bin dirs for this user
 #
-FIND_PATH(VTK_SOURCE_PATH Common/vtkObject.h
+FIND_PATH(VTK_SOURCE_DIR Common/vtkObject.h
     [HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereSource]
     [HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereSource2]
     [HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereSource3]
@@ -28,12 +28,12 @@ FIND_PATH(VTK_SOURCE_PATH Common/vtkObject.h
 #
 # If we found a source tree then set use_installed_vtk to 0
 #
-IF (VTK_SOURCE_PATH)
+IF (VTK_SOURCE_DIR)
   SET (USE_INSTALLED_VTK 0 CACHE BOOL "Is an installed (versus source) version of VTK used")
   #
   # Look for a binary tree
   # 
-  FIND_PATH(VTK_BIN_PATH vtkConfigure.h
+  FIND_PATH(VTK_BINARY_DIR vtkConfigure.h
     [HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild]
     [HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild2]
     [HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild3]
@@ -45,7 +45,7 @@ IF (VTK_SOURCE_PATH)
     $ENV{HOME}/VTKBIN
     $ENV{HOME}/vtkbin
     )
-ELSE (VTK_SOURCE_PATH)
+ELSE (VTK_SOURCE_DIR)
   # look for the vtk header files in installed places
   FIND_PATH(VTK_INSTALL_PATH include/vtk/vtkObject.h
     /usr/local
@@ -57,7 +57,7 @@ ELSE (VTK_SOURCE_PATH)
   IF (VTK_INSTALL_PATH)
     SET (USE_INSTALLED_VTK 1 CACHE BOOL "Is an installed (versus source) version of VTK used")
   ENDIF (VTK_INSTALL_PATH)
-ENDIF (VTK_SOURCE_PATH)
+ENDIF (VTK_SOURCE_DIR)
 
 IF (USE_INSTALLED_VTK)
   # look for the vtk header files in installed places