[vtk-developers] VTK ExternalData default object store

David Thompson david.thompson at kitware.com
Tue May 21 14:15:29 EDT 2013


Hi all,

Bill Lorensen wrote:
> In SetupForDevelopment.sh we could ask if the developer wants to create an VTKExternalData directory...
> 
> In the CMakeLists.txt for VTK, we could use FindPath to locate the VTKExternalData directory. If it is not found in the "usual" places, we could use the default behavior.

On Unix-like systems, it would be nice if the "usual" places included /var/{cache,db}/VTKExternalData. They need not be the default, but should be in the search path.

/var/cache for Linux: http://www.pathname.com/fhs/2.2/fhs-5.5.html
/var/db for *BSD and Mac OS X

	My 2 cents,
	David


> 
> Something like;
> if (NOT ExternalData_OBJECT_STORES)
>   find_path(VTKExternalDataPath NAMES VTKExternalData PATHS ../${VTK_SOURCE} ${HOME})
>   if(VTKExternalDataPath)
>     set(ExternalData_OBJECT_STORES ${VTKExternalDataPath})
> 
>   endif()
> 
> endif()
> 
> On Tue, May 21, 2013 at 1:44 PM, Brad King <brad.king at kitware.com> wrote:
> On 05/21/2013 01:40 PM, Brad King wrote:
> > My argument is only that default behavior with *no* local configuration
> > should not touch anything outside the source or build tree.
> 
> There are already several steps VTK developers run locally:
> 
> * Run Utilities/SetupForDevelopment.sh
> * Clone VTKData
> * Run CMake and point VTK_DATA_ROOT at VTKData
> 
> We can fold local configuration needed to enable an external default
> into one or more of those steps.  I'm working on a patch to do this
> and will push for review.
> 
> -Brad
> 
> 
> 
> -- 
> Unpaid intern in BillsBasement at noware dot com
> _______________________________________________
> 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
> 




More information about the vtk-developers mailing list