diff --git a/Utilities/ClangFormat/DownloadClangFormat.cmake b/Utilities/ClangFormat/DownloadClangFormat.cmake index 527ee323ab0..6c8f392b0ca 100644 --- a/Utilities/ClangFormat/DownloadClangFormat.cmake +++ b/Utilities/ClangFormat/DownloadClangFormat.cmake @@ -16,7 +16,7 @@ if(CMAKE_HOST_SYSTEM_NAME MATCHES "Linux" AND CMAKE_HOST_SYSTEM_PROCESSOR STREQU set(_clang_format_url "https://data.kitware.com/api/v1/file/hashsum/sha512/${_clang_format_hash}/download") elseif( CMAKE_HOST_SYSTEM_NAME MATCHES "Darwin" - AND CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "x86_64" + AND ( CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "x86_64" OR CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "arm64" ) AND (NOT CMAKE_HOST_SYSTEM_VERSION VERSION_LESS