[cmake-developers] Automatically set policies for shipped modules

Brad King brad.king at kitware.com
Mon Sep 17 14:23:43 EDT 2018


On 09/17/2018 09:14 AM, Craig Scott wrote:
> We may also need to be careful about CMP0011

The policy scope added for our own modules can be marked as a "weak"
scope.  This means that specific policies can be set when the scope
is first opened in C++ code, but policy settings inside the scope will
leak out to the parent scope.  This inner "weak" scope can be added
to apply CMP0057 and such whether or not the main inclusion has its
own strong scope.

-Brad


More information about the cmake-developers mailing list