[Insight-developers] WrapITK cmake_minimum_required v. CMP0003
Gaëtan Lehmann
gaetan.lehmann at jouy.inra.fr
Fri May 13 04:29:11 EDT 2011
Hi Brad,
Thanks for the advice.
Ashish, could you propose a gerrit change to fix that problem?
Thanks,
Gaëtan
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 --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110513/da773a2d/attachment.pgp>
More information about the Insight-developers
mailing list