Skip to content

Commit

Permalink
[cmake] Differentiate arm64 binaries from x86_64
Browse files Browse the repository at this point in the history
  • Loading branch information
tobil4sk committed Jun 28, 2024
1 parent 89c812e commit aa90b0d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aa90b0d

Please sign in to comment.