[CMake] [CPACK] debian package
Mathieu Malaterre
mathieu.malaterre at gmail.com
Fri Mar 28 11:37:48 EDT 2008
Hi,
Please consider the attached patch for inclusion in cmake 2.6.0.
Without the patch it puts the responsability on each packager to
properly set the architecture to create valid debian package. Instead
getting the result from dpkg --print-architecture is the correct way.
Right now I have to do:
IF(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64")
SET(CPACK_DEBIAN_PACKAGE_ARCHITECTURE amd64)
ELSEIF(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "i686")
SET(CPACK_DEBIAN_PACKAGE_ARCHITECTURE i386)
ENDIF(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64")
The initial plan was not to rely on any tool to create debian
package, but since NSIS packager rely on NSIS exe, I believe relying
on the presence of dpkg is relatively weak.
Thanks
--
Mathieu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: deb.patch
Type: text/x-patch
Size: 1144 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080328/2d0687cb/attachment-0003.bin>
More information about the CMake
mailing list