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/RunCMake/GeneratorPlatform | |
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/RunCMake/GeneratorPlatform')
-rw-r--r-- | Tests/RunCMake/GeneratorPlatform/RunCMakeTest.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/RunCMake/GeneratorPlatform/RunCMakeTest.cmake b/Tests/RunCMake/GeneratorPlatform/RunCMakeTest.cmake index 83e63f9..a7519c3 100644 --- a/Tests/RunCMake/GeneratorPlatform/RunCMakeTest.cmake +++ b/Tests/RunCMake/GeneratorPlatform/RunCMakeTest.cmake @@ -3,7 +3,7 @@ include(RunCMake) set(RunCMake_GENERATOR_PLATFORM "") run_cmake(NoPlatform) -if("${RunCMake_GENERATOR}" MATCHES "^Visual Studio ([89]|1[012456])( 20[0-9][0-9])?$") +if("${RunCMake_GENERATOR}" MATCHES "^Visual Studio ([89]|1[0124567])( 20[0-9][0-9])?$") set(RunCMake_GENERATOR_PLATFORM "x64") run_cmake(x64Platform) else() @@ -17,7 +17,7 @@ set(RunCMake_TEST_OPTIONS -A "Test Platform" -A "Extra Platform") run_cmake(TwoPlatforms) unset(RunCMake_TEST_OPTIONS) -if("${RunCMake_GENERATOR}" MATCHES "^Visual Studio ([89]|1[012456])( 20[0-9][0-9])?$") +if("${RunCMake_GENERATOR}" MATCHES "^Visual Studio ([89]|1[0124567])( 20[0-9][0-9])?$") set(RunCMake_TEST_OPTIONS -DCMAKE_TOOLCHAIN_FILE=${RunCMake_SOURCE_DIR}/TestPlatform-toolchain.cmake) run_cmake(TestPlatformToolchain) unset(RunCMake_TEST_OPTIONS) |