[CMake] Setting Policy CMP0028

Nils Gladitz nilsgladitz at gmail.com
Fri Jul 11 08:31:58 EDT 2014


On 07/11/2014 01:33 PM, pierre.andersson at se.atlascopco.com wrote:
> Thanks for the response. None of those are called in the CMakeLists.txt
> file that the warning is issued for, they are both called in a file
> above that one  in the build tree but said file also sets the CML0028
> policy afterwards. Is it possible that a call to cmake_minimum_required
> resets the policies even for CMakeLists.txt that are not below it in the
> build system tree?

You can not change policies for the parent; only for the current and 
subdirectories.

It might help if you could create a minimal, selfcontained test case to 
reproduce and debug the issue.

Nils



More information about the CMake mailing list