From bde372bc72ac72a6dc8a2ea9443b5424043c5c9a Mon Sep 17 00:00:00 2001 From: Rafael Kitover Date: Mon, 10 Jul 2023 01:37:55 +0000 Subject: [PATCH] build: fix codesigning arm64 release binaries CMAKE_CROSSCOMPILING is true when building arm64 on an x64 host, so ignore this on MSVC. Eventually we want to run osslsigncode through wine when cross compiling for win32 on other platforms, or use the native signtool. Signed-off-by: Rafael Kitover --- src/wx/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wx/CMakeLists.txt b/src/wx/CMakeLists.txt index a9f7f63a..81bd5740 100644 --- a/src/wx/CMakeLists.txt +++ b/src/wx/CMakeLists.txt @@ -1142,7 +1142,7 @@ if(NOT TRANSLATIONS_ONLY) if(UPSTREAM_RELEASE AND WIN32) set(home "$ENV{HOME}") - if(NOT CMAKE_CROSSCOMPILING AND NOT DEFINED ENV{MSYSTEM_PREFIX}) + if((MSVC OR NOT CMAKE_CROSSCOMPILING) AND NOT DEFINED ENV{MSYSTEM_PREFIX}) set(home "$ENV{USERPROFILE}") endif()