[ITK] [ITK-dev] ITK and CMake 3.0 and policy CMP0046
Brad King
brad.king at kitware.com
Fri Apr 18 13:16:02 EDT 2014
On Fri, Apr 18, 2014 at 12:40 PM, Sean McBride <sean at rogue-research.com> wrote:
> Has anyone tried ITK and CMake 3.0 yet?
>
> Policy CMP0046 is not set: Error on non-existent dependency in
> add_dependencies. Run "cmake --help-policy CMP0046" for policy details.
> Use the cmake_policy command to set the policy and suppress this warning.
Yes, but apparently not with options that cause CMake/itkOpenCL.cmake to
be included. Every call to add_dependencies in that file is incorrect. The
add_dependencies command is for inter-target ordering dependencies, not
file-level dependencies. CMP0046 was added in part to start diagnosing
such incorrect code.
-Brad
_______________________________________________
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://kitware.com/products/protraining.php
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-developers
More information about the Community
mailing list