diff options
author | Brad King <brad.king@kitware.com> | 2021-07-29 11:49:27 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-07-29 14:15:01 -0400 |
commit | 22dab6eb96438b8563079c44d00c520df5b04a6e (patch) | |
tree | 89da2b615d0fba53f87c73c264a8a3f6eac3021f /Tests/CMakeLists.txt | |
parent | 9251205512c49bbdda5d82f48126dc5b8e79d70f (diff) | |
download | cmake-22dab6eb96438b8563079c44d00c520df5b04a6e.tar.gz |
Deprecate Visual Studio 10 2010 generator
Update documentation to mark the generator deprecated. Add a warning at
the end of generation plus an option to turn off the warning.
Diffstat (limited to 'Tests/CMakeLists.txt')
-rw-r--r-- | Tests/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index 388ff207a8..ef8c84648c 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -39,6 +39,13 @@ set(ENV{HOME} \"${TEST_HOME}\") ") endif() +# Suppress generator deprecation warnings in test suite. +if(CMAKE_GENERATOR MATCHES "^Visual Studio 10 2010") + set(TEST_WARN_VS10_CODE "set(ENV{CMAKE_WARN_VS10} OFF)") +else() + set(TEST_WARN_VS10_CODE "") +endif() + # 3.9 or later provides a definitive answer to whether we are multi-config # through a global property. Prior to 3.9, CMAKE_CONFIGURATION_TYPES being set # is assumed to mean multi-config, but developers might modify it so it is |