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 Dune Build System Policies for the list of introduced
DUNE build system policies.
- dune_policy¶
Get, set, list, or explain DUNE buildsystem policies.
dune_policy(GET <policy> <var>) dune_policy(SET <policy> <value> [QUIET]) dune_policy(LIST) dune_policy(HELP)
GET <policy> <var>Retrieve the effective value of
<policy>into<var>.SET <policy> <value> [QUIET]Set
<policy>toOLDorNEWfor the current project. IfQUIETis given, undefined policies are ignored without a warning.LISTPrint the registered policies and their current values.
HELPPrint a short usage summary for
dune_policy().
- dune_define_policy¶
Register a new DUNE buildsystem policy.
dune_define_policy(<policy> "<doc>") dune_define_policy(<policy> <module> <version> "<doc>")
<policy>Policy identifier naming a specific behavior change.
<doc>Documentation shown when the policy is unset and
DUNE_POLICY_DISABLE_WARNINGis not set toTRUE.<module>,<version>Deprecated compatibility arguments. They are ignored.
Deprecated since version 2.12: The signature
dune_define_policy(<policy> <module> <version> <doc>)is deprecated. Usedune_define_policy(<policy> <doc>)instead.
- DUNE_POLICY_DEFAULT¶
Default value of an unset policy. Supported values are
OLDandNEW. The default isOLD.
- DUNE_POLICY_DISABLE_WARNING¶
If set to
TRUE, warnings about unset DUNE policies are suppressed. The default isFALSE.