From 376b93f48fef66966ce2e7597914df10980b982f Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 20 Nov 2025 17:01:14 -0500 Subject: [PATCH] Tests/RunCMake/GeneratorToolset: Fix Visual Studio 18 2026 host arch on ARM64 This was missed in commit 3392b371e2 (VS: Add Visual Studio 18 2026 generator, 2025-08-20, v4.2.0-rc1~165^2~1). --- Tests/RunCMake/GeneratorToolset/TestToolsetHostArchNone.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/RunCMake/GeneratorToolset/TestToolsetHostArchNone.cmake b/Tests/RunCMake/GeneratorToolset/TestToolsetHostArchNone.cmake index c15b572a6d..b969c70edd 100644 --- a/Tests/RunCMake/GeneratorToolset/TestToolsetHostArchNone.cmake +++ b/Tests/RunCMake/GeneratorToolset/TestToolsetHostArchNone.cmake @@ -6,7 +6,7 @@ if(CMAKE_GENERATOR MATCHES "Visual Studio 1[678]") cmake_host_system_information(RESULT is_64_bit QUERY IS_64BIT) if(is_64_bit) if("${CMAKE_HOST_SYSTEM_PROCESSOR}" STREQUAL "ARM64") - if(CMAKE_GENERATOR STREQUAL "Visual Studio 17 2022") + if(CMAKE_GENERATOR MATCHES "Visual Studio 1[78] ") if(NOT "${CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE}" STREQUAL "ARM64") message(FATAL_ERROR "CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE is not 'ARM64' as expected.") endif()