OrangesOptimizationFlags¶
Provides an interface target with some configuration-aware compiler-specific optimization flags.
If the configuration being built is in the DEBUG_CONFIGURATIONS
property, then this target adds the equivalent of -O0
.
Otherwise, this target adds optimization flags that are designed to be as performant as possible, even at the expense of accuracy. For example, in compilers that support various floating point modes or options, the fastest option available is chosen.
If the configuration being built is MINSIZEREL
, then all optimization flags that don’t affect binary size are still added,
and any extra flags available to tell the compiler to optimize for size are also added.
Targets¶
Oranges::OrangesOptimizationFlags
Interface target with configuration-specific optimization flags configured.