From 397350f14aa1be4f93fe110501e690cc5a4cf2c2 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Fri, 2 Aug 2024 08:50:37 -0700 Subject: [PATCH] Update CMake to handle ARM64EC with VS Generator --- build/CompilerAndLinker.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build/CompilerAndLinker.cmake b/build/CompilerAndLinker.cmake index d53ab583..197b1c34 100644 --- a/build/CompilerAndLinker.cmake +++ b/build/CompilerAndLinker.cmake @@ -18,6 +18,8 @@ elseif(CMAKE_GENERATOR_PLATFORM MATCHES "^[Aa][Rr][Mm]$") set(DIRECTX_ARCH arm) elseif(CMAKE_GENERATOR_PLATFORM MATCHES "^[Aa][Rr][Mm]64$") set(DIRECTX_ARCH arm64) +elseif(CMAKE_GENERATOR_PLATFORM MATCHES "^[Aa][Rr][Mm]64EC$") + set(DIRECTX_ARCH arm64ec) elseif(CMAKE_VS_PLATFORM_NAME_DEFAULT MATCHES "^[Ww][Ii][Nn]32$") set(DIRECTX_ARCH x86) elseif(CMAKE_VS_PLATFORM_NAME_DEFAULT MATCHES "^[Xx]64$") @@ -26,6 +28,8 @@ elseif(CMAKE_VS_PLATFORM_NAME_DEFAULT MATCHES "^[Aa][Rr][Mm]$") set(DIRECTX_ARCH arm) elseif(CMAKE_VS_PLATFORM_NAME_DEFAULT MATCHES "^[Aa][Rr][Mm]64$") set(DIRECTX_ARCH arm64) +elseif(CMAKE_VS_PLATFORM_NAME_DEFAULT MATCHES "^[Aa][Rr][Mm]64EC$") + set(DIRECTX_ARCH arm64ec) endif() #--- Build with Unicode Win32 APIs per "UTF-8 Everywhere"