On 07/29/2015 03:58 PM, Alex Merry wrote:
> This is intended to be used from a "settings file" which is applied to a
> group of CMake projects. This allows the file to control which policies
> means that users of the settings file are not forced to use NO_POLICY_SCOPE
> (particularly important if the settings file did not originally have any
> policy settings in it, but later acquired some).

Policies should not be set from a central hub, especially without the
explicit permission of the including project (via NO_POLICY_SCOPE).

Setting policies centrally breaks their compatibility model.  The
whole point is that the old behavior is preserved (possibly with a
warning) until the project whose code triggers the policy is modified
to address it.  By setting a policy on behalf of the project calling
include() you could silence warnings about behavior changes or even
introduce errors.  Each project author needs a chance to see their
own policy warnings and address them accordingly.

-Brad

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to