Skip to content
Snippets Groups Projects
Commit 8ab8661c authored by Alejandro Lopez Gestoso's avatar Alejandro Lopez Gestoso
Browse files

Added the definition of CPACK_DEBIAN_PACKAGE_ARCHITECTURE

parent 08308cd2
No related branches found
No related tags found
No related merge requests found
...@@ -66,6 +66,15 @@ ELSE(UNIX) ...@@ -66,6 +66,15 @@ ELSE(UNIX)
) )
ENDIF(UNIX) ENDIF(UNIX)
IF (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)")
SET (X86 TRUE)
SET(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "amd64")
ELSE ()
SET (X86 FALSE)
SET(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "i386")
ENDIF()
IF (UNIX) IF (UNIX)
SET(CPACK_PACKAGE_FILE_NAME "iri-${PACKAGE_NAME}-dev-${CPACK_PACKAGE_VERSION}-${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}") SET(CPACK_PACKAGE_FILE_NAME "iri-${PACKAGE_NAME}-dev-${CPACK_PACKAGE_VERSION}-${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}")
SET(CPACK_PACKAGE_NAME "iri-${PACKAGE_NAME}-dev") SET(CPACK_PACKAGE_NAME "iri-${PACKAGE_NAME}-dev")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment