Description of problem: When including VTK in another CMake-configured project, CMake encounters an error due to an invalid VTK path. Version-Release number of selected component (if applicable): vtk-5.2.1-1.fc11 How reproducible: Create a CMakeLists.txt file that contains the following: SET(VTK_DIR /usr/lib64) FIND_PACKAGE(VTK) IF (VTK_FOUND) INCLUDE (${VTK_USE_FILE}) ENDIF (VTK_FOUND) then run CMake on this project. Actual results: CMake Error at CMakeLists.txt:263 (INCLUDE): include could not find load file: /usrlib64/vtk-5.2/UseVTK.cmake Expected results: CMake finds and configures VTK for use in new project. Additional info: It seems that the missing "/" in the generated path is due to the following changes in /usr/lib64/vtk-5.2/VTKConfig.cmake: # The location of the UseVTK.cmake file. SET(VTK_USE_FILE "${VTK_INSTALL_PREFIX}lib64/vtk-5.2/UseVTK.cmake") in vtk5.2 used to be # The directory containing class list files for each kit. SET(VTK_KITS_DIR "${VTK_INSTALL_PREFIX}/usr/lib64/vtk-5.0") in the previous version. I am having a bit of a hard time tracking down in the VTK cvs what exactly went along with this change, but it seems this could be either a misconfiguration of the Fedora build, or an upstream bug in VTK 5.2.
Sorry, wrong cut'n'paste -- the VTKConfig.cmake section in 5.0 that corresponds to the one quoted for 5.2 is of course # The location of the UseVTK.cmake file. SET(VTK_USE_FILE "${VTK_INSTALL_PREFIX}/usr/lib64/vtk-5.0/UseVTK.cmake")
*** This bug has been marked as a duplicate of bug 490879 ***