diff --git a/CMakeLists.txt b/CMakeLists.txt index a31edd41b..2db9e0c5a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1283,6 +1283,9 @@ else () OUTPUT_VARIABLE CPACK_DEBIAN_PACKAGE_ARCHITECTURE OUTPUT_STRIP_TRAILING_WHITESPACE ) + if (${CPACK_DEBIAN_PACKAGE_ARCHITECTURE} STREQUAL powerpc AND ${PROJECT_ARCHITECTURE} STREQUAL ppc64) + set (CPACK_DEBIAN_PACKAGE_ARCHITECTURE ${PROJECT_ARCHITECTURE}) + endif (${CPACK_DEBIAN_PACKAGE_ARCHITECTURE} STREQUAL powerpc AND ${PROJECT_ARCHITECTURE} STREQUAL ppc64) else (DPKG_PROGRAM) set (CPACK_DEBIAN_PACKAGE_ARCHITECTURE noarch) endif (DPKG_PROGRAM)