[CMake] [CPACK] debian package

David Cole david.cole at kitware.com
Fri Mar 28 11:53:38 EDT 2008


Why not do a FIND_PROGRAM on dpkg and use it if it's there (and you're not
cross-compiling...) but keep the old logic in place if there is no dpkg....?

On Fri, Mar 28, 2008 at 11:37 AM, Mathieu Malaterre <
mathieu.malaterre at gmail.com> wrote:

> 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
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080328/393edacc/attachment-0003.htm>


More information about the CMake mailing list