mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-03 20:29:56 -06:00
Previously the `INTERPROCEDURAL_OPTIMIZATION` target property was honored only for the Intel compiler on Linux and otherwise ignored. In order to add support for more compilers incrementally without changing behavior in the future, add a new policy whose NEW behavior enforces the `INTERPROCEDURAL_OPTIMIZATION` property. Add flags for supported compilers and otherwise produce an error.
9 lines
463 B
ReStructuredText
9 lines
463 B
ReStructuredText
interprocedural_optimization_policy
|
|
-----------------------------------
|
|
|
|
* The :prop_tgt:`INTERPROCEDURAL_OPTIMIZATION` target property is now enforced
|
|
when enabled. CMake will add IPO flags unconditionally or produce an error
|
|
if it does not know the flags for the current compiler. The project is now
|
|
responsible to use the :module:`CheckIPOSupported` module to check for IPO
|
|
support before enabling the target property. See policy :policy:`CMP0069`.
|