[Insight-users] CMake-ITK Error

Sundaresan R sundaresan.r at gmail.com
Tue Mar 22 15:16:51 EDT 2011


Hi All,

I keep getting this error. Can anyone tell me how to fix it?
I use CMake 2.8.2, AMD 64b, ITK 3.20

 CMake Error at /usr/share/cmake-2.8/Modules/FindITK.cmake:90 (INCLUDE):
   include could not find load file:

     /home/sundar/_tools/InsightToolkit-3.20.0/ITKConfig.cmake
 Call Stack (most recent call first):
   CMakeLists.txt:81 (FIND_PACKAGE)

 CMake Error at CMakeLists.txt:83 (INCLUDE):
   include called with wrong number of arguments.  Include only takes one
   file.

 CMake Error at /usr/share/cmake-2.8/Modules/FindITK.cmake:90 (INCLUDE):
   include could not find load file:



CMakeLists.txt
********************************************
# Find ITK.  # Line 75

FIND_PATH(ITK_DIR ITKConfig.cmake
"/home/sundar/_tools/InsightToolkit-3.20.0/"
)

FIND_PACKAGE(ITK)
IF(ITK_FOUND)
  INCLUDE(${ITK_USE_FILE})
ELSE(ITK_FOUND)
  MESSAGE(FATAL_ERROR
          "Cannot build without ITK.  Please set ITK_DIR.")
ENDIF(ITK_FOUND)
******************************************


Thanks,
Sundar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110322/7914fb67/attachment.htm>


More information about the Insight-users mailing list