If I use this:<br>---------------------------<br>FIND_PACKAGE(VTK REQUIRED)<br>INCLUDE(${VTK_USE_FILE})<br>---------------------------<br><br>CMake prompts me to enter the path to VTK and then everything works properly. I thought I could specify the path in the CMakeLists.txt file like this:<br>
<br>---------------------------<br>SET( VTK_DIR /home/doriad/bin/ParaView3/VTK )<br>INCLUDE(${VTK_DIR}/UseVTK.cmake)<br>
---------------------------<br><br>But I get the error:<br><br>---------------------------<br> CMake Error at /home/doriad/bin/ParaView3/VTK/UseVTK.cmake:30 (INCLUDE):<br>   include could not find load file:<br><br>     /vtkMakeInstantiator.cmake<br>
 Call Stack (most recent call first):<br>   CMakeLists.txt:24 (INCLUDE)<br>---------------------------<br><br>/home/doriad/bin/ParaView3/VTK is the same path I tell cmake in the first version.<br><br>Can anyone see what I&#39;ve done wrong?<br>
<br clear="all">Thanks,<br><br>David<br>