[vtk-developers] CMP0020 warning in Tutorial Example 6... why?

Andrew Maclean andrew.amaclean at gmail.com
Mon Feb 16 17:13:02 EST 2015


Yes, that was the problem.

Thankyou for spotting it.

I have submitted a change for review:
http://review.source.kitware.com/#/c/19278/

Regards
   Andrew


On Tue, Feb 17, 2015 at 12:12 AM, Robert Maynard <robert.maynard at kitware.com
> wrote:

> Have you tried removing the find_package(VTK) on line 19?
>
> On Sun, Feb 15, 2015 at 10:25 PM, Andrew Maclean
> <andrew.amaclean at gmail.com> wrote:
> > When I build the examples in VTK why do I get a CMP0020 warning in
> > Examples/Tutorial/Step6/Cxx/CMakeLists.txt but not for any of the other
> > examples.
> > It would be easily fixed by adding:
> > if(POLICY CMP0020)
> >   cmake_policy(SET CMP0020 NEW)
> > endif()
> > to the CMakeLists.txt file. However I don't see why this particular
> example
> > needs it. It doesn't use QT and I don't see why the other examples don't
> > need this fix.
> >
> > Can anyone provide some insight here?
> >
> > I am building with CMake 3.1.3, QT5.4, OpenGL2 using MSVC 3013.
> >
> > This warning occurs multiple times when building VTK:
> > ------------------------------------
> > CMake Warning (dev) in Examples/Tutorial/Step6/Cxx/CMakeLists.txt:
> >   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
> >   target on Windows.  Run "cmake --help-policy CMP0020" for policy
> details.
> >   Use the cmake_policy command to set the policy and suppress this
> warning.
> > This warning is for project developers.  Use -Wno-dev to suppress it.
> > ------------------------------------
> >
> > Thanks for any insight.
> >
> > Regards
> >    Andrew
> >
> > --
> > ___________________________________________
> > Andrew J. P. Maclean
> >
> > ___________________________________________
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Search the list archives at:
> http://markmail.org/search/?q=vtk-developers
> >
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/vtk-developers
> >
> >
>



-- 
___________________________________________
Andrew J. P. Maclean

___________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20150217/239d5670/attachment.html>


More information about the vtk-developers mailing list