summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMP0069
diff options
context:
space:
mode:
authorNiels Dekker <N.Dekker@lumc.nl>2018-09-09 21:04:59 (GMT)
committerBrad King <brad.king@kitware.com>2018-09-17 14:53:10 (GMT)
commit567fabe88e97c3e39503fd353b484648bcf1cbb2 (patch)
tree7fb0dd095df92c5425896f900a78e46c6ed75633 /Tests/RunCMake/CMP0069
parentccb6dab9f19bd19968dc2b94806dfc4cf22cdd79 (diff)
downloadCMake-567fabe88e97c3e39503fd353b484648bcf1cbb2.zip
CMake-567fabe88e97c3e39503fd353b484648bcf1cbb2.tar.gz
CMake-567fabe88e97c3e39503fd353b484648bcf1cbb2.tar.bz2
IPO: INTERPROCEDURAL_OPTIMIZATION (LTCG) for Visual Studio
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
Diffstat (limited to 'Tests/RunCMake/CMP0069')
-rw-r--r--Tests/RunCMake/CMP0069/RunCMakeTest.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/RunCMake/CMP0069/RunCMakeTest.cmake b/Tests/RunCMake/CMP0069/RunCMakeTest.cmake
index f44f840..456e6a6 100644
--- a/Tests/RunCMake/CMP0069/RunCMakeTest.cmake
+++ b/Tests/RunCMake/CMP0069/RunCMakeTest.cmake
@@ -5,6 +5,6 @@ run_cmake(CMP0069-NEW-cmake)
run_cmake(CMP0069-NEW-compiler)
run_cmake(CMP0069-WARN)
-if(RunCMake_GENERATOR MATCHES "^Visual Studio ")
+if(RunCMake_GENERATOR MATCHES "^Visual Studio 9 ")
run_cmake(CMP0069-NEW-generator)
endif()