[cmake-developers] multiconfig cpack
Clinton Stimpson
clinton at elemtech.com
Thu Jan 26 00:09:59 EST 2012
On Jan 25, 2012, at 3:54 PM, Clinton Stimpson wrote:
>
> Being able to package both a debug and release build into one package using
> cpack has come up on the mailing list a couple times. It seems the only
> workable solution is to have two makefile builds with a single cpack config that
> points to both.
>
> However, I'm wondering, in the case of mutli-config generators, if it would be
> acceptable to modify cpack to take multiple configurations as
> cpack -C Debug;Release .
>
> and modify the main loop in
> cmCPackGenerator::InstallProjectViaInstallCMakeProjects to also loop over
> build types.
>
> With that, the cpack config file can stay in the one build tree, which is the
> typical use case.
>
Umm.. never mind. I'd prefer going with a more portable solution and can probably add a flag to create the secondary build tree, and configure the main build tree's CPackConfig file to include the secondary one.
Thanks anyway.
Clint
More information about the cmake-developers
mailing list