<div dir="ltr"><div>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.</div><div>It would be easily fixed by adding:</div><div><div>if(POLICY CMP0020)</div><div>  cmake_policy(SET CMP0020 NEW)</div><div>endif()</div></div><div>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. </div><div><br></div><div>Can anyone provide some insight here?</div><div><br></div><div>I am building with CMake 3.1.3, QT5.4, OpenGL2 using MSVC 3013.</div><div><br></div><div>This warning occurs multiple times when building VTK:<br></div><div>------------------------------------<br><div><div>CMake Warning (dev) in Examples/Tutorial/Step6/Cxx/CMakeLists.txt:</div><div>  Policy CMP0020 is not set: Automatically link Qt executables to qtmain</div><div>  target on Windows.  Run "cmake --help-policy CMP0020" for policy details.</div><div>  Use the cmake_policy command to set the policy and suppress this warning.</div><div>This warning is for project developers.  Use -Wno-dev to suppress it.</div><div>------------------------------------<br><div></div></div><div><br></div><div>Thanks for any insight.</div><div><br></div><div>Regards</div><div>   Andrew</div><div><br></div>-- <br><div class="gmail_signature">___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________</div>
</div></div></div>