[cmake-developers] multiconfig cpack

Clinton Stimpson clinton at elemtech.com
Wed Jan 25 17:54:00 EST 2012


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.

Thanks.

-- 
Clinton Stimpson
Elemental Technologies, Inc
Computational Simulation Software, LLC
www.csimsoft.com



More information about the cmake-developers mailing list