From 70b8721d891326389f6838f38ead5f499afa27d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20Komar=C4=8Devi=C4=87?= <4973094+kmilos@users.noreply.github.com> Date: Fri, 11 Oct 2024 07:45:14 +0200 Subject: [PATCH] Windows on ARM64 install fix cygcheck comes from base MSYS2, not CLANGARM64, and currently works on X64 objects only Fixes #17562 --- packaging/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/CMakeLists.txt b/packaging/CMakeLists.txt index a6f4c1ba8b88..2d5eec8903fe 100644 --- a/packaging/CMakeLists.txt +++ b/packaging/CMakeLists.txt @@ -5,7 +5,7 @@ if(WIN32 AND NOT BUILD_MSYS2_INSTALL) get_filename_component(MINGW_PATH ${CMAKE_CXX_COMPILER} PATH) find_program(cygcheck_BIN cygcheck) - if(${cygcheck_BIN} STREQUAL "cygcheck_BIN-NOTFOUND") + if(CMAKE_SYSTEM_PROCESSOR MATCHES "ARM64" OR ${cygcheck_BIN} STREQUAL "cygcheck_BIN-NOTFOUND") # use the slower fixup_bundle