summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMP0069/CMP0069-NEW-compiler.cmake
blob: 24b409acdc8404f7c82bf1263cb02a423f33e322 (plain)
1
2
3
4
5
6
7
cmake_policy(SET CMP0069 NEW)

set(_CMAKE_IPO_SUPPORTED_BY_CMAKE YES)
set(_CMAKE_IPO_MAY_BE_SUPPORTED_BY_COMPILER NO)

add_executable(foo main.cpp)
set_target_properties(foo PROPERTIES INTERPROCEDURAL_OPTIMIZATION TRUE)