mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
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.
9 lines
226 B
Plaintext
9 lines
226 B
Plaintext
cmake_minimum_required(VERSION "@CMAKE_VERSION@")
|
|
project("@TRY_COMPILE_PROJECT_NAME@" LANGUAGES CXX)
|
|
|
|
cmake_policy(SET CMP0069 NEW)
|
|
|
|
add_library(foo foo.cpp)
|
|
add_executable(boo main.cpp)
|
|
target_link_libraries(boo PUBLIC foo)
|