ENH: remove hard codeded arch
This commit is contained in:
parent
7eeec39538
commit
c761fd772f
|
@ -34,14 +34,17 @@ ENDIF(NOT CPACK_DEBIAN_PACKAGE_VERSION)
|
||||||
|
|
||||||
# Architecture: (mandatory)
|
# Architecture: (mandatory)
|
||||||
IF(NOT CPACK_DEBIAN_PACKAGE_ARCHITECTURE)
|
IF(NOT CPACK_DEBIAN_PACKAGE_ARCHITECTURE)
|
||||||
# There is no such thing as i686 architecture on debian, you should use i386 instead
|
# There is no such thing as i686 architecture on debian, you should use i386 instead
|
||||||
# $ dpkg --print-architecture
|
# $ dpkg --print-architecture
|
||||||
SET(CPACK_DEBIAN_PACKAGE_ARCHITECTURE i386)
|
EXECUTE_PROCESS(COMMAND dpkg --print-architecture
|
||||||
|
OUTPUT_VARIABLE CPACK_DEBIAN_PACKAGE_ARCHITECTURE)
|
||||||
ENDIF(NOT CPACK_DEBIAN_PACKAGE_ARCHITECTURE)
|
ENDIF(NOT CPACK_DEBIAN_PACKAGE_ARCHITECTURE)
|
||||||
|
|
||||||
# have a look at GET_PROPERTY(result GLOBAL PROPERTY ENABLED_FEATURES),
|
# have a look at GET_PROPERTY(result GLOBAL PROPERTY ENABLED_FEATURES),
|
||||||
# this returns the successful FIND_PACKAGE() calls, maybe this can help
|
# this returns the successful FIND_PACKAGE() calls, maybe this can help
|
||||||
# Depends:
|
# Depends:
|
||||||
|
# You should set: DEBIAN_PACKAGE_DEPENDS
|
||||||
|
# TODO: automate 'objdump -p | grep NEEDED'
|
||||||
IF(NOT CPACK_DEBIAN_PACKAGE_DEPENDS)
|
IF(NOT CPACK_DEBIAN_PACKAGE_DEPENDS)
|
||||||
MESSAGE(STATUS "CPACK_DEBIAN_PACKAGE_DEPENDS not set, the package will have no dependencies.")
|
MESSAGE(STATUS "CPACK_DEBIAN_PACKAGE_DEPENDS not set, the package will have no dependencies.")
|
||||||
ENDIF(NOT CPACK_DEBIAN_PACKAGE_DEPENDS)
|
ENDIF(NOT CPACK_DEBIAN_PACKAGE_DEPENDS)
|
||||||
|
|
Loading…
Reference in New Issue