mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-30 11:10:06 -05: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
5 lines
141 B
CMake
5 lines
141 B
CMake
set(_CMAKE_CXX_IPO_LEGACY_BEHAVIOR NO)
|
|
|
|
add_executable(foo main.cpp)
|
|
set_target_properties(foo PROPERTIES INTERPROCEDURAL_OPTIMIZATION TRUE)
|