ENH: allow deb to work without dpkg
This commit is contained in:
parent
db5582c32d
commit
e40fe909a6
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue