[CMake] CPack integration

David Cole david.cole at kitware.com
Mon Aug 2 08:13:16 EDT 2010


On Mon, Aug 2, 2010 at 3:58 AM, Dennis Schridde <devurandom at gmx.net> wrote:

> On Monday 02 August 2010 04:03:09 David Cole wrote:
> > On Sun, Aug 1, 2010 at
> 6:17 PM, Eric Noulard <eric.noulard at gmail.com> wrote:
> >>> [...]
> > > My
> personal point of view with your idea is that
> > > since we most most
> probably want to maintain backward compatibility
> > > it would even be better
> if we can do
> > >
> > > 1 - set(CPACK_...
> > > 2 - include(CPack)
> > > 3 -
> set(CPACK_...)
> > > 4 - cpack_update_config() or cpack_reconfig()
> > >
> > >
> that way 1, 3 and 4 are optional just as today.
> > > 3 and 4 would bring what
> you suggest.
> >
> > You can already do this today with:
> >
> > 1 -
> set(CPACK_...
> > 2 - include(CPack)
> > 3 - set(CPACK_...)
> > 4 -
> include(CPack)
> I tried something similar to this:
> # include(CPack)
> #
> set(CPACK_...)
> # include(CPack)
> It did not work as expected.
>
> It seems that
> when including CPack the 2nd time, things like the version number are not
> updated to the new values, probably because the variable is already set and
> will not be automatically overwritten.
>
> I assume that you'll suggest "set
> the version number before first including CPack". And I will disagree
> there.
> People would have to look at the sourcecode to figure out which values they
> have to set before the first inclusion and which to set afterwards. From a
> usability point of view this would be bad.
>
> Kind regards,
> Dennis
>
>

I stand corrected. Sorry, I thought you just needed CPack's default values
set in order to override some other values based on those defaults. Which
does work, but requires knowledge of which values CPack sets by default
based on which other values...


David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100802/8542b1d8/attachment-0001.htm>


More information about the CMake mailing list