[vtk-developers] VTK installation: shell scripts for env vars

David Gobbi dgobbi at atamai.com
Fri Feb 17 09:01:51 EST 2006


--- Brad King <brad.king at kitware.com> wrote:

> David Gobbi wrote:

> > Are there other people who think that having CMake figure out the 
> > LD_LIBRARY_PATH would be valuable?  Even though it is a complicated 
> > thing to do, it is certainly doable.
> 
> The proper LD_LIBRARY_PATH-like variable can be computed with a TRY_RUN 
> on a simple program that uses the preprocessor to determine the right 
> variable.  See this file for an example used in ParaView:
> 
>
http://www.paraview.org/cgi-bin/viewcvs.cgi/VTK/Utilities/kwsys/SharedForward.h.in?root=ParaView&view=markup
> 

Thanks, Brad.  I created a CMake/vtkSharedLibraryPathInfo.cxx using that code and it works great. 
Now my CMakeLists.txt has a TRY_RUN that sets SHARED_LDPATH to the LD_LIBRARY_PATH-equivalent for
the platform.

Sebastien: I can put this into VTK cvs.  Should the variable that holds the info be called
VTK_SHARED_LDPATH or CMAKE_SHARED_LDPATH?

 - David





More information about the vtk-developers mailing list