Skip to content

Commit

Permalink
Determine debian architecture using dpkg (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
btertoolen authored Jul 25, 2024
1 parent 1faf648 commit e7eb693
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion install/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}")
if(UNIX)
# DEB package
if(NOT DEBARCH)
set(DEBARCH ${CMAKE_SYSTEM_PROCESSOR})
execute_process(
COMMAND dpkg --print-architecture
OUTPUT_VARIABLE DEBARCH
OUTPUT_STRIP_TRAILING_WHITESPACE
)
endif()
message(STATUS "Configure DEB packaging for Linux ${DEBARCH}")
list(APPEND CPACK_GENERATOR DEB)
Expand Down

0 comments on commit e7eb693

Please sign in to comment.