mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-21 06:00:51 -06:00
Add IPO support for Visual Studio (which is referred to by VS as "Link Time Code Generation" and "Whole Program Optimization"), for VS version >= 10. This allows CMake/VS users to enable IPO by setting property `INTERPROCEDURAL_OPTIMIZATION`. Fixes: #16748
11 lines
222 B
CMake
11 lines
222 B
CMake
include(RunCMake)
|
|
|
|
run_cmake(CMP0069-OLD)
|
|
run_cmake(CMP0069-NEW-cmake)
|
|
run_cmake(CMP0069-NEW-compiler)
|
|
run_cmake(CMP0069-WARN)
|
|
|
|
if(RunCMake_GENERATOR MATCHES "^Visual Studio 9 ")
|
|
run_cmake(CMP0069-NEW-generator)
|
|
endif()
|