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

Robert Maynard robert.maynard at kitware.com
Mon Feb 16 08:12:08 EST 2015


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
>
>


More information about the vtk-developers mailing list