mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-03 20:29:56 -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
14 lines
330 B
CMake
14 lines
330 B
CMake
include(RunCMake)
|
|
|
|
run_cmake(unparsed-arguments)
|
|
run_cmake(user-lang-unknown)
|
|
run_cmake(default-lang-none)
|
|
run_cmake(not-supported-by-cmake)
|
|
run_cmake(not-supported-by-compiler)
|
|
run_cmake(save-to-result)
|
|
run_cmake(cmp0069-is-old)
|
|
|
|
if(RunCMake_GENERATOR MATCHES "^Visual Studio 9 ")
|
|
run_cmake(not-supported-by-generator)
|
|
endif()
|