[CMake] LOAD_CACHE and UseVTKConfig40.cmake

Mathieu Malaterre mathieu.malaterre at gmail.com
Sat Apr 12 08:54:52 EDT 2008


Hi there,

  Running a simple cmakelists.txt file on debian stable (etch), I am
getting the following error:

CMake Error: Error in cmake code at
 /usr/share/cmake-2.4/Modules/UseVTKConfig40.cmake:21:
 LOAD_CACHE Cannot load cache file from /usr/bin/../lib/vtk-5.0/CMakeCache.txt
 Current CMake stack:
 [3]/usr/share/cmake-2.4/Modules/UseVTKConfig40.cmake
 [2]/usr/share/cmake-2.4/Modules/FindVTK.cmake
 [1]/home/mathieu/Projects/gdcm/Utilities/VTK/CMakeLists.txt

 CMake Error: Error in cmake code at
 /home/mathieu/Projects/gdcm/Utilities/VTK/CMakeLists.txt:59:
 Unknown CMake command "VTK_MAKE_INSTANTIATOR2".


With something as simple as:

FIND_PACKAGE(VTK)
INCLUDE(${VTK_USE_FILE})


Since vtk is a debian package, I am guessing something went wrong,
since cmake should not expect to find a CMakeCache.txt in an install
tree, right ?

Ref:
cmake is 2.4.7

Thanks,
-- 
Mathieu


More information about the CMake mailing list