mirror of
https://github.com/reactos/CMake.git
synced 2024-12-15 07:41:15 +00:00
ba247ccaba
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
7 lines
154 B
CMake
7 lines
154 B
CMake
project(${RunCMake_TEST} LANGUAGES C)
|
|
|
|
set(_CMAKE_C_IPO_SUPPORTED_BY_CMAKE YES)
|
|
set(_CMAKE_C_IPO_MAY_BE_SUPPORTED_BY_COMPILER YES)
|
|
|
|
check_ipo_supported()
|