INTERPROCEDURAL_OPTIMIZATION

Enable interprocedural optimization for a target.

If set to true, enables interprocedural optimizations if they areknowntobesupported by the compiler. Dependingon value of policyCMP0069, the error will be reported or ignored,if interprocedural optimization is enabled but not supported.

This property is initialized by theCMAKE_INTERPROCEDURAL_OPTIMIZATION variable if it is set when atarget is created.

There is also the per-configurationINTERPROCEDURAL_OPTIMIZATION_<CONFIG>target property, which overridesINTERPROCEDURAL_OPTIMIZATIONif it is set.

See Also

  • TheCheckIPOSupported module to check whether the compilersupports interprocedural optimization before enabling this target property.