diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-03-28 18:08:07 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-03-28 18:08:07 (GMT) |
commit | e40fe909a62df9e073aa597646e048e7b7aa3a37 (patch) | |
tree | 640361a0552c6c2606682c2417bcd249a90d7d16 | |
parent | db5582c32da8b9234fa840daf9b8e44daa743cba (diff) | |
download | CMake-e40fe909a62df9e073aa597646e048e7b7aa3a37.zip CMake-e40fe909a62df9e073aa597646e048e7b7aa3a37.tar.gz CMake-e40fe909a62df9e073aa597646e048e7b7aa3a37.tar.bz2 |
ENH: allow deb to work without dpkg
-rw-r--r-- | Modules/CPackDeb.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
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) |