[CMake] Packaging : Debug + Release together

Kfir Lavi lavi.kfir at gmail.com
Tue May 22 04:20:20 EDT 2012


On Tue, May 22, 2012 at 1:45 AM, Eric Noulard <eric.noulard at gmail.com>wrote:

> 2012/5/21 Nicholas Yue <yue.nicholas at gmail.com>:
> > Hi,
> >
> >    I can build debug and release code by setting the CMAKE_BUILD_TYPE
> > variable.
> >
> >    What is the recommend process/workflow if I wish to
> build/install/package
> > both the Debug and Release build into a single e.g. RPM, as part of an
> > automated process (e.g. nightly build) ?
>
> Currently CPack cannot do that out of the box because CMake cannot do
> that either.
> CMake requires 2 build trees for that (at least on Linux)
>
> >    How will CPack find the different builds for packaging ?
>
> He won't.
>
> May be it's possible to craft your own CPackConfig.cmake file which would
> refer to the 2 build trees but how would you ensure that there won't
> be any name collision between "debug" and "release" tree?
>
> Shall they be installed in different place /prefix ?
> What would be the layout of the expected unique RPM ?
>
>
>
> --
> Erk
> Le gouvernement représentatif n'est pas la démocratie --
> http://www.le-message.org
> --
>
>
I would just compile it twice and create my-debug.rpm and my.rpm
Is that a viable solution for you?

Regards,
Kfir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120522/8c8760b4/attachment.htm>


More information about the CMake mailing list