DunePolicy ---------- Get and set dune policies to control changes in behavior of the dune build system. A policy is by default set to ``OLD`` if not set otherwise. The default behavior can be influenced by the global CMake variable ``DUNE_POLICY_DEFAULT``. See :ref:`policies` for the list of introduced DUNE build system policies. .. cmake:command:: dune_policy Get, set, list, or explain DUNE buildsystem policies. .. code-block:: cmake dune_policy(GET ) dune_policy(SET [QUIET]) dune_policy(LIST) dune_policy(HELP) ``GET `` Retrieve the effective value of ```` into ````. ``SET [QUIET]`` Set ```` to ``OLD`` or ``NEW`` for the current project. If ``QUIET`` is given, undefined policies are ignored without a warning. ``LIST`` Print the registered policies and their current values. ``HELP`` Print a short usage summary for :cmake:command:`dune_policy()`. .. cmake:command:: dune_define_policy Register a new DUNE buildsystem policy. .. code-block:: cmake dune_define_policy( "") dune_define_policy( "") ```` Policy identifier naming a specific behavior change. ```` Documentation shown when the policy is unset and ``DUNE_POLICY_DISABLE_WARNING`` is not set to ``TRUE``. ````, ```` Deprecated compatibility arguments. They are ignored. .. deprecated:: 2.12 The signature ``dune_define_policy( )`` is deprecated. Use ``dune_define_policy( )`` instead. .. cmake:variable:: DUNE_POLICY_DEFAULT Default value of an unset policy. Supported values are ``OLD`` and ``NEW``. The default is ``OLD``. .. cmake:variable:: DUNE_POLICY_DISABLE_WARNING If set to ``TRUE``, warnings about unset DUNE policies are suppressed. The default is ``FALSE``.