[Insight-users] CMake warning(dev) in Cmakelists.txt

Stuart Golodetz itk at gxstudios.net
Wed Jul 14 22:20:47 EDT 2010


It means that when the person who wrote the CMakeLists.txt file for the 
project was doing so, they didn't put a line like this at the top:

cmake_minimum_required(VERSION 2.6)

The purpose of this is to prevent old versions of CMake being used with 
projects they can't handle. See the following:

http://www.cmake.org/cmake/help/cmake2.6docs.html#command:cmake_minimum_required

I'd guess cmake_minimum_required may not have been available/required 
when the CMakeLists.txt files for the itk examples were being written - 
so it's just a harmless case of files being outdated by ever-advancing 
tools (i.e. not the fault of the people who wrote the files).

Bottom line: ignore the warnings :)

Regards,
Stu

michael ma wrote:
> HI guys,
> when I use Cmake to configure examples surported by itk, it always 
> have Cmake warning below:
>  
> cmake warning(dev) in cmakelist.txt:
>     no cmake_required comond is present.A line of code such as cmake 
> minimum required(versin 2.6) should at the top of the file. the 
> version specified may be lower if you wish to support older CMake 
> versions for this project.
>  
> what does that mean? what should I do?
>  
>  thanks in advance for any help.
>  
> Best,
> Michael
>
>
> ------------------------------------------------------------------------
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100715/73d50d49/attachment.htm>


More information about the Insight-users mailing list