MantisBT - VTK
View Issue Details
0000060VTK(No Category)public2003-07-07 15:152005-02-25 08:38
tk.sinha 
Ken Martin 
lowfeaturealways
closedfixed 
 
 
0000060: The default VTK_DATA_ROOT is not assigned dynamically in vtkTestUtilities.h
In the current version of vtkTestUtilities.h, the default VTK_DATA_ROOT is not assigned dynamically during the CMake generation process. Instead it is assigned to "../../../../VTKData". While this facilitates easy testing for any code in the VTK directory tree, projects wishing to use the VTK_DATA_ROOT outside the VTK tree are unable to.

A possible fix for this (I think) is to mv vtkTestUtilities.h to vtkTestUtilities.h.in and change instances of "../../../../VTKData" to "@VTK_DATA_ROOT@". Then add a line to the CMakeLists.txt: CONFIGURE_FILE(vtkTestUtilities.h.in vtkTestUtilities.h)
No tags attached.
Issue History
2011-06-16 13:11Zack GalbreathCategory => (No Category)

Notes
(0000978)
Ken Martin   
2004-04-26 11:18   
OK. This code has changed quite a bit recently so let me check and see if the current situaiton works for you. Currently the testing framework sets VTK_DATA_ROOT using the following algorithm. If a -D option is passed on the command line then that argument will be used as VTK_DATA_ROOT, otherwise it checks to see if the environment variable VTK_DATA_ROOT is set and uses that, otherwise it uses ../../../../VTKData. Generally all the testing in VTK uses the -D flag to explicitly specify VTK_DATA_ROOT. Does this meet your needs? Or do you still prefer to have the fallback use a configured value instead of the ../../.. value?
(0002114)
Ken Martin   
2005-02-25 08:38   
Modified vtkTesting.cxx to use a configured value for VTK_DATA_ROOT as the last resort as opposed to ../../../../VTKData