[Cmake] VTK_DIR

Simon DROUIN sdrouin at bic.mni.mcgill.ca
Tue, 30 Mar 2004 11:10:38 -0500


Thanks,

I've had a look at FindVTK.cmake and a few other .cmake files and found 
out that adding the following line to the CMakeLists.txt I had worked 
fine to use the environment variable VTK_DIR:

FIND_PATH(VTK_DIR UseVTK.cmake $ENV{VTK_DIR} )

If that can be useful to somebody.

-simon

mhg at unizar.es wrote:

>Hi Simon,
>
>in the directory where you installed CMake, you have a folder called Modules.
>Inside it, you have a file called FindVTK.cmake. This is the file that tells
>cmake where to look for VTK and set the value of VTK_DIR.
>
>Best.
>
>Mensaje citado por Simon DROUIN <sdrouin at bic.mni.mcgill.ca>:
>
>  
>
>>Hi all,
>>
>>Where does cmake get the value of VTK_DIR? Until today, I tought that 
>>the value was taken from the VTK_DIR environment variable if it existed 
>>and that seemed to be the case with cmake-1.6.7. I just upgraded to 
>>1.8.3 and that doesn't seem to be the case anymore. How do I tell cmake: 
>>"Always look for vtk here"?
>>
>>Thanks in advance.
>>
>>-simon
>>
>>_______________________________________________
>>Cmake mailing list
>>Cmake at www.cmake.org
>>http://www.cmake.org/mailman/listinfo/cmake
>>
>>    
>>
>
>
>
>  
>