diff options
author | Brad King <brad.king@kitware.com> | 2021-06-24 20:12:31 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-06-25 16:45:44 (GMT) |
commit | c46b265839c408ba04edc6ae7c96bc257547f43c (patch) | |
tree | 30172385edacef220a835c568e73513ff4ccd4a5 /Tests/CMakeLists.txt | |
parent | b610b7a35cd62ce180ef3f5be4fabd9336f3fe51 (diff) | |
download | CMake-c46b265839c408ba04edc6ae7c96bc257547f43c.zip CMake-c46b265839c408ba04edc6ae7c96bc257547f43c.tar.gz CMake-c46b265839c408ba04edc6ae7c96bc257547f43c.tar.bz2 |
VS: Add Visual Studio 17 2022 generator
Fixes: #22339
Diffstat (limited to 'Tests/CMakeLists.txt')
-rw-r--r-- | Tests/CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index 6d73554..341aba6 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -209,9 +209,12 @@ if(BUILD_TESTING) if(CMAKE_HOST_WIN32 AND COMMAND cmake_host_system_information) set(info_vs15 "VS_15_DIR") set(info_vs16 "VS_16_DIR") + set(info_vs17 "VS_17_DIR") set(vs_versions) if(WIN32) - if(NOT CMAKE_VERSION VERSION_LESS 3.14) + if(NOT CMAKE_VERSION VERSION_LESS 3.21.20210624) + set(vs_versions vs15 vs16 vs17) + elseif(NOT CMAKE_VERSION VERSION_LESS 3.14) set(vs_versions vs15 vs16) elseif(NOT CMAKE_VERSION VERSION_LESS 3.8) set(vs_versions vs15) @@ -2459,6 +2462,9 @@ if(BUILD_TESTING) if(vs16 AND CMake_TEST_ANDROID_VS16) add_test_VSAndroid(vs16 "Visual Studio 16 2019" "ARM") endif() + if(vs17 AND CMake_TEST_ANDROID_VS17) + add_test_VSAndroid(vs17 "Visual Studio 17 2022" "ARM") + endif() if (APPLE) if (CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") |