View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000060VTK(No Category)public2003-07-07 15:152005-02-25 08:38
Reportertk.sinha 
Assigned ToKen Martin 
PrioritylowSeverityfeatureReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000060: The default VTK_DATA_ROOT is not assigned dynamically in vtkTestUtilities.h
DescriptionIn 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)
TagsNo tags attached.
Project
Type
Attached Files

 Relationships

  Notes
(0000978)
Ken Martin (developer)
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 (developer)
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

 Issue History
Date Modified Username Field Change
2011-06-16 13:11 Zack Galbreath Category => (No Category)


Copyright © 2000 - 2018 MantisBT Team