[Insight-developers] CMake error text

Brad King brad.king at kitware.com
Mon Apr 18 14:16:35 EDT 2011


On 04/18/2011 12:39 PM, David Doria wrote:
> CMake Error at /usr/share/cmake/Modules/FindITK.cmake:52 (MESSAGE):
>   Please set ITK_DIR to the directory containing ITKConfig.cmake.  This is
>   either the root of the build tree, or PREFIX/lib/InsightToolkit for an
>   installation.
> 
> Is this still correct? I did an "install" for the first time and there
> does not seem to be an InsightToolkit folder inside the lib folder.
> Rather, ITKConfig.cmake seems to be in
> 
> PREFIX/lib/cmake/ITK-4.0/ITKConfig.cmake

The message comes from CMake's FindITK module.  If it were not for ITKv3
compatibility the module would not be needed at all anymore.  I fixed it
to be more of a pass through that uses find_package's default message:

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=aa170c20

-Brad


More information about the Insight-developers mailing list