<div dir="ltr">Yes, that was the problem.<div><br></div><div>Thankyou for spotting it.</div><div><br></div><div>I have submitted a change for review: <a href="http://review.source.kitware.com/#/c/19278/">http://review.source.kitware.com/#/c/19278/</a></div><div><br></div><div>Regards</div><div>   Andrew</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 17, 2015 at 12:12 AM, Robert Maynard <span dir="ltr"><<a href="mailto:robert.maynard@kitware.com" target="_blank">robert.maynard@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Have you tried removing the find_package(VTK) on line 19?<br>
<div><div class="h5"><br>
On Sun, Feb 15, 2015 at 10:25 PM, Andrew Maclean<br>
<<a href="mailto:andrew.amaclean@gmail.com">andrew.amaclean@gmail.com</a>> wrote:<br>
> When I build the examples in VTK why do I get a CMP0020 warning in<br>
> Examples/Tutorial/Step6/Cxx/CMakeLists.txt but not for any of the other<br>
> examples.<br>
> It would be easily fixed by adding:<br>
> if(POLICY CMP0020)<br>
>   cmake_policy(SET CMP0020 NEW)<br>
> endif()<br>
> to the CMakeLists.txt file. However I don't see why this particular example<br>
> needs it. It doesn't use QT and I don't see why the other examples don't<br>
> need this fix.<br>
><br>
> Can anyone provide some insight here?<br>
><br>
> I am building with CMake 3.1.3, QT5.4, OpenGL2 using MSVC 3013.<br>
><br>
> This warning occurs multiple times when building VTK:<br>
> ------------------------------------<br>
> CMake Warning (dev) in Examples/Tutorial/Step6/Cxx/CMakeLists.txt:<br>
>   Policy CMP0020 is not set: Automatically link Qt executables to qtmain<br>
>   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.<br>
>   Use the cmake_policy command to set the policy and suppress this warning.<br>
> This warning is for project developers.  Use -Wno-dev to suppress it.<br>
> ------------------------------------<br>
><br>
> Thanks for any insight.<br>
><br>
> Regards<br>
>    Andrew<br>
><br>
> --<br>
> ___________________________________________<br>
> Andrew J. P. Maclean<br>
><br>
> ___________________________________________<br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" target="_blank">http://markmail.org/search/?q=vtk-developers</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/vtk-developers" target="_blank">http://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
><br>
><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________</div>
</div>