OrangesIPO¶
Provides a function to enable IPO, if supported.
- oranges_enable_ipo¶
oranges_enable_ipo (<target> [INCLUDE_DEBUG])
Enables interprocedural optimization for the given <target>
if the CMAKE_INTERPROCEDURAL_OPTIMIZATION
is
set to ON
. If this variable is OFF
, then calling this function does nothing.
IPO is explicitly disabled for all debug configurations, unless the INCLUDE_DEBUG
flag is passed.
Variables¶
CMAKE_INTERPROCEDURAL_OPTIMIZATION
If this variable is set to OFF, then calling oranges_enable_ipo()
does nothing.
See also
- Module
CheckIPOSupported
Built-in CMake module for checking if IPO is supported by the current toolchain