[CMake] Policy CMP0020 setting is ignored

Peter Kuemmel syntheticpp at gmx.net
Tue Oct 7 03:58:08 EDT 2014


> Hi
>
> although I have "cmake_policy (SET CMP0020 NEW)" in my top level  
> CMakeLists.txt file I get a lot of warnings about "Policy CMP0020 is  
> not set..."
> After some testing it seems to me that the policy setting is only  
> respected for the configure but not for the generate step.
> Has anyone an idea what might be the cause?
>
> Dominik

A call to cmake_minimum_required() resets the policy setting.

Peter


More information about the CMake mailing list