From e40fe909a62df9e073aa597646e048e7b7aa3a37 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 28 Mar 2008 14:08:07 -0400 Subject: ENH: allow deb to work without dpkg --- Modules/CPackDeb.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modules/CPackDeb.cmake b/Modules/CPackDeb.cmake index b95e5ef..31f45a6 100644 --- a/Modules/CPackDeb.cmake +++ b/Modules/CPackDeb.cmake @@ -38,7 +38,8 @@ IF(NOT CPACK_DEBIAN_PACKAGE_ARCHITECTURE) # $ dpkg --print-architecture FIND_PROGRAM(DPKG_CMD dpkg) IF(NOT DPKG_CMD) - MESSAGE(FATAL_ERROR "Can not find dpkg in your path.") + MESSAGE("Can not find dpkg in your path default to i386.") + SET(CPACK_DEBIAN_PACKAGE_ARCHITECTURE i386) ENDIF(NOT DPKG_CMD) EXECUTE_PROCESS(COMMAND "${DPKG_CMD}" --print-architecture OUTPUT_VARIABLE CPACK_DEBIAN_PACKAGE_ARCHITECTURE) -- cgit v0.12