[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vtk-developers
Subject:    [vtk-developers] vtkTesting GetDataRoot not finding VTK_DATA_ROOT?
From:       David Doria <daviddoria () gmail ! com>
Date:       2012-10-25 12:14:33
Message-ID: CABDpjT=NUN2Xk5kMNSn-zwEYuAK-d6OM_zxHH+Kro5p7N2VKbA () mail ! gmail ! com
[Download RAW message or body]

In vtkTesting.cxx, in GetDataRoot() there is:

#ifdef VTK_DATA_ROOT
  string dr=vtkTestingGetArgOrEnvOrDefault(
                "-D",this->Args,"VTK_DATA_ROOT",VTK_DATA_ROOT);
#else
  string dr=vtkTestingGetArgOrEnvOrDefault(
                "-D",this->Args, "VTK_DATA_ROOT","../../../../VTKData");
#endif

In the VTK CMake configuration, I have set VTK_DATA_ROOT to the path
of my VTKData clone. However, the #else above is what the preprocessor
is indicating should be compiled. Is setting VTK_DATA_ROOT in the VTK
CMake config before building not the only thing necessary to get
vtkTesting to build the #ifdef above?

Also, what is ../../../../ assuming? It seems that this is an odd
choice - for example, if vtkTesting is in
/home/doriad/src/VTK/Testing/Rendering, then ../../../../ would be
just /home/doriad . Why would we assume that VTKData is available at
two levels above the VTK source directory?

Thanks,

David
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtk-developers

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic