From aa90b0df3bdc840dbbcab6ea0d8f3d924464bb98 Mon Sep 17 00:00:00 2001 From: Tobiasz Laskowski Date: Fri, 28 Jun 2024 17:50:48 +0100 Subject: [PATCH] [cmake] Differentiate arm64 binaries from x86_64 --- CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e0ca664..52215591 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -741,7 +741,13 @@ else() set(OS_NAME "") endif() -set(bin_archive_name_we "neko-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}-${OS_NAME}${arch_64}") +if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "arm64") + set(arch_suffix "-arm64") +else() + set(arch_suffix ${arch_64}) +endif() + +set(bin_archive_name_we "neko-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}-${OS_NAME}${arch_suffix}") set(bin_archive_name "${bin_archive_name_we}.${bin_archive_format}") set(CPACK_PACKAGE_FILE_NAME ${bin_archive_name_we}) # set(CPACK_SOURCE_PACKAGE_FILE_NAME