summaryrefslogtreecommitdiffstats
path: root/Modules/CPackDeb.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-03-28 15:47:24 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-03-28 15:47:24 (GMT)
commitc761fd772fba53cb8d13872fab079fa1a4270656 (patch)
tree14c73d11ab1736522c0b86a1739e4c434dd819c5 /Modules/CPackDeb.cmake
parent7eeec39538ce516b9ee380445a654f2e54c67431 (diff)
downloadCMake-c761fd772fba53cb8d13872fab079fa1a4270656.zip
CMake-c761fd772fba53cb8d13872fab079fa1a4270656.tar.gz
CMake-c761fd772fba53cb8d13872fab079fa1a4270656.tar.bz2
ENH: remove hard codeded arch
Diffstat (limited to 'Modules/CPackDeb.cmake')
-rw-r--r--Modules/CPackDeb.cmake9
1 files changed, 6 insertions, 3 deletions
diff --git a/Modules/CPackDeb.cmake b/Modules/CPackDeb.cmake
index dcce5c6..e41e8d1 100644
--- a/Modules/CPackDeb.cmake
+++ b/Modules/CPackDeb.cmake
@@ -34,14 +34,17 @@ ENDIF(NOT CPACK_DEBIAN_PACKAGE_VERSION)
# Architecture: (mandatory)
IF(NOT CPACK_DEBIAN_PACKAGE_ARCHITECTURE)
-# There is no such thing as i686 architecture on debian, you should use i386 instead
-# $ dpkg --print-architecture
- SET(CPACK_DEBIAN_PACKAGE_ARCHITECTURE i386)
+ # There is no such thing as i686 architecture on debian, you should use i386 instead
+ # $ dpkg --print-architecture
+ EXECUTE_PROCESS(COMMAND dpkg --print-architecture
+ OUTPUT_VARIABLE CPACK_DEBIAN_PACKAGE_ARCHITECTURE)
ENDIF(NOT CPACK_DEBIAN_PACKAGE_ARCHITECTURE)
# have a look at GET_PROPERTY(result GLOBAL PROPERTY ENABLED_FEATURES),
# this returns the successful FIND_PACKAGE() calls, maybe this can help
# Depends:
+# You should set: DEBIAN_PACKAGE_DEPENDS
+# TODO: automate 'objdump -p | grep NEEDED'
IF(NOT CPACK_DEBIAN_PACKAGE_DEPENDS)
MESSAGE(STATUS "CPACK_DEBIAN_PACKAGE_DEPENDS not set, the package will have no dependencies.")
ENDIF(NOT CPACK_DEBIAN_PACKAGE_DEPENDS)