Skip to content

Commit

Permalink
fix: set debarch according to target not host
Browse files Browse the repository at this point in the history
  • Loading branch information
diogomatsubara committed Oct 23, 2024
1 parent 7f47e0d commit e85200e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions install/cpack_project_config.cmake
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
if(CPACK_GENERATOR MATCHES "DEB")
# DEB package
if(NOT DEBARCH)
execute_process(
COMMAND dpkg --print-architecture
OUTPUT_VARIABLE DEBARCH
OUTPUT_STRIP_TRAILING_WHITESPACE
)
set(DEBARCH ${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR})
endif()
message(STATUS "Configure DEB packaging for Linux ${DEBARCH}")
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "ZettaScale Zenoh Team, <[email protected]>")
Expand Down

0 comments on commit e85200e

Please sign in to comment.