Skip to content

Commit ccabc36

Browse files
committed
chore: include the target arch in the packaged artifact
1 parent 63c61a2 commit ccabc36

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3977,6 +3977,11 @@ set(CPACK_CREATE_DESKTOP_LINKS "mixxx")
39773977
set(CPACK_MIXXX_VERSION "${MIXXX_VERSION}")
39783978
# Save GIT values just in case they have been set manual via cmake
39793979
set(CPACK_GIT_DESCRIBE "${GIT_DESCRIBE}")
3980+
if(CMAKE_SYSTEM_PROCESSOR)
3981+
string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" CPACK_SYSTEM_PROCESSOR)
3982+
else()
3983+
string(TOLOWER "${CMAKE_HOST_SYSTEM_PROCESSOR}" CPACK_SYSTEM_PROCESSOR)
3984+
endif()
39803985
set(CPACK_GIT_COMMIT_DATE ${GIT_COMMIT_DATE})
39813986

39823987
# Detailed version information, git info and package file name are set from

packaging/CPackConfig.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if(NOT GIT_DESCRIBE)
1111
else()
1212
set(PACKAGE_VERSION "${GIT_DESCRIBE}")
1313
endif()
14-
set(CPACK_PACKAGE_FILE_NAME "mixxx-${PACKAGE_VERSION}")
14+
set(CPACK_PACKAGE_FILE_NAME "mixxx-${PACKAGE_VERSION}-${CPACK_SYSTEM_PROCESSOR}")
1515
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}-source")
1616

1717
# The upstream version must not contain hyphen

0 commit comments

Comments
 (0)