cmake/Help/prop_tgt/INTERPROCEDURAL_OPTIMIZATION.rst

18 lines
701 B
ReStructuredText
Raw Normal View History

2014-08-03 19:52:23 +02:00
INTERPROCEDURAL_OPTIMIZATION
----------------------------
Enable interprocedural optimization for a target.
If set to true, enables interprocedural optimizations if they are
2019-11-11 23:01:05 +01:00
known :module:`to be supported <CheckIPOSupported>` by the compiler. Depending
on value of policy :policy:`CMP0069`, the error will be reported or ignored,
if interprocedural optimization is enabled but not supported.
2017-07-20 19:35:53 +02:00
This property is initialized by the
:variable:`CMAKE_INTERPROCEDURAL_OPTIMIZATION` variable if it is set when a
target is created.
2023-05-23 16:38:00 +02:00
There is also the per-configuration :prop_tgt:`INTERPROCEDURAL_OPTIMIZATION_<CONFIG>`
target property, which overrides :prop_tgt:`INTERPROCEDURAL_OPTIMIZATION`
if it is set.