[vtkusers] Specifying VTK Path in CMakeLists.txt

David Doria daviddoria at gmail.com
Sat Apr 11 09:53:19 EDT 2009


If I use this:
---------------------------
FIND_PACKAGE(VTK REQUIRED)
INCLUDE(${VTK_USE_FILE})
---------------------------

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:

---------------------------
SET( VTK_DIR /home/doriad/bin/ParaView3/VTK )
INCLUDE(${VTK_DIR}/UseVTK.cmake)
---------------------------

But I get the error:

---------------------------
 CMake Error at /home/doriad/bin/ParaView3/VTK/UseVTK.cmake:30 (INCLUDE):
   include could not find load file:

     /vtkMakeInstantiator.cmake
 Call Stack (most recent call first):
   CMakeLists.txt:24 (INCLUDE)
---------------------------

/home/doriad/bin/ParaView3/VTK is the same path I tell cmake in the first
version.

Can anyone see what I've done wrong?

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090411/569ce809/attachment.htm>


More information about the vtkusers mailing list