mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -05:00
1588a577d1
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.
7 lines
123 B
CMake
7 lines
123 B
CMake
project(${RunCMake_TEST} LANGUAGES C CXX)
|
|
|
|
cmake_policy(SET CMP0069 OLD)
|
|
|
|
include(CheckIPOSupported)
|
|
check_ipo_supported()
|