CMake/Tests/RunCMake/CheckIPOSupported/not-supported-by-cmake.cmake
Brad King ba247ccaba IPO: Consider support for each language separately
We only define `INTERPROCEDURAL_OPTIMIZATION` behavior for C, CXX, and
Fortran languages.  Do not try to enable support for other languages.
Furthermore, each language builds with a different compiler, so check
for support by CMake and the compiler for each language independently.

Fixes: #16944
2017-06-14 10:36:57 -04:00

4 lines
100 B
CMake

project(${RunCMake_TEST} LANGUAGES C)
set(_CMAKE_C_IPO_SUPPORTED_BY_CMAKE NO)
check_ipo_supported()