[Insight-developers] WrapITK cmake_minimum_required v. CMP0003

Ashish Sharma ashishs99 at gmail.com
Sun May 15 15:43:39 EDT 2011


>
>
> Thanks for the advice.
>
> Ashish, could you propose a gerrit change to fix that problem?


Sure :-)


Ashish


> Le 11 mai 11 à 23:59, Brad King a écrit :
>
>
>  Hi Gaëtan,
>>
>> Warnings like this:
>>
>> http://www.cdash.org/CDash/viewConfigure.php?buildid=1116597
>> CMake Warning (dev) at Wrapping/WrapITK/Languages/Java/CMakeLists.txt:146
>> (add_library):
>>  Policy CMP0003 should be set before this line.
>>  ...
>>
>> should never appear in ITK anymore because we require at least
>> CMake 2.8.  However, a few lines in WrapITK still specify an
>> older version:
>>
>> $ git grep -i cmake_minimum_required -- master -- Wrapping |cat
>> Wrapping/WrapITK/CMakeLists.txt:cmake_minimum_required(VERSION 2.4.5
>> FATAL_ERROR)
>> Wrapping/WrapITK/ConfigureWrapping.cmake:cmake_minimum_required(VERSION
>> 2.4.2 FATAL_ERROR)
>> Wrapping/WrapITK/ExternalProjects/ItkVtkGlue/CMakeLists.txt:cmake_minimum_required(VERSION
>> 2.8)
>> Wrapping/WrapITK/ExternalProjects/PyBuffer/CMakeLists.txt:cmake_minimum_required(VERSION
>> 2.4.2 FATAL_ERROR)
>>
>> The 2.4 lines should be changed to 2.8 (or at least 2.6).  That will
>> ensure that CMP0003 is always set (to NEW) and warnings like the
>> above will never appear.
>>
>> -Brad
>>
>
> --
> Gaëtan Lehmann
> Biologie du Développement et de la Reproduction
> INRA de Jouy-en-Josas (France)
> tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
> http://voxel.jouy.inra.fr  http://www.itk.org
> http://www.mandriva.org  http://www.bepo.fr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110515/8f32393f/attachment.htm>


More information about the Insight-developers mailing list