[CMake] [CPACK] debian package
Bill Hoffman
bill.hoffman at kitware.com
Fri Mar 28 11:53:21 EDT 2008
Mathieu Malaterre 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.
>
Can you please try this version I just checked in:
$ cvs commit -m "ENH: remove hard codeded arch " CPackDeb.cmake
/cvsroot/CMake/CMake/Modules/CPackDeb.cmake,v <-- CPackDeb.cmake
new revision: 1.10; previous revision: 1.9
I added a few more checks.
-Bill
More information about the CMake
mailing list