ENH: allow deb to work without dpkg

This commit is contained in:
Bill Hoffman 2008-03-28 14:08:07 -04:00
parent db5582c32d
commit e40fe909a6
1 changed files with 2 additions and 1 deletions

View File

@ -38,7 +38,8 @@ IF(NOT CPACK_DEBIAN_PACKAGE_ARCHITECTURE)
# $ dpkg --print-architecture # $ dpkg --print-architecture
FIND_PROGRAM(DPKG_CMD dpkg) FIND_PROGRAM(DPKG_CMD dpkg)
IF(NOT DPKG_CMD) 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) ENDIF(NOT DPKG_CMD)
EXECUTE_PROCESS(COMMAND "${DPKG_CMD}" --print-architecture EXECUTE_PROCESS(COMMAND "${DPKG_CMD}" --print-architecture
OUTPUT_VARIABLE CPACK_DEBIAN_PACKAGE_ARCHITECTURE) OUTPUT_VARIABLE CPACK_DEBIAN_PACKAGE_ARCHITECTURE)