[CMake] How does VTK_USE_FILE get set? - .. handling bug

Orion Poplawski orion at cora.nwra.com
Fri Jan 25 11:34:24 EST 2008


Orion Poplawski wrote:
> Can someone explain how FindVTK.cmake sets VTK_USE_FILE?  I don't see 
> anywhere in there where it is set.  Must be a side effect of some other 
> command?
> 
> On my system, VTK_USE_FILE is getting set to 
> /usr/bin/usr/lib/vtk-5.0/UseVTK.cmake instead of 
> /usr/lib/vtk-5.0/UseVTK.cmake.

In my CMakeCache.txt file, VTK_DIR gets set to:

VTK_DIR:PATH=/usr/bin/../lib/vtk-5.0

If I change to:

VTK_DIR:PATH=/usr/lib/vtk-5.0

and rerun cmake, all is well.  So it looks like something isn't handling 
".." correctly in the path.  This is with cmake 2.4.8 on Fedora 8.

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion at cora.nwra.com
Boulder, CO 80301              http://www.cora.nwra.com


More information about the CMake mailing list