2010/8/22 Eric Noulard <eric.noul...@gmail.com>: > 2010/8/21 Clinton Stimpson <clin...@elemtech.com>: >> >> I wondered if one would typically use groups if their project contained sub >> projects, and the sub projects had different conventions for the component >> names. > > I do not usually work with sub-project and I must admit I don't even know > how CPack behave for project with sub-project(s). I'll try in order to observe > the current behavior.
Ok now I did some testing regarding CPack and subproject(s). >From my testing and my thinking the conclusion is CPack is not aware **AT ALL** of subprojects :-( It's even worse, since CPack is not meant to be included more than once in the same tree. In fact you already know that because you are the reporter of this: http://public.kitware.com/Bug/view.php?id=10751 A related discussion on the ML: http://www.cmake.org/pipermail/cmake/2010-August/038648.html So I would say, unless I misunderstood something, that **currently** you CAN NOT use "subproject" to do any grouping with CPack. If any subproject do include(CPack) while your toplevel project does it as well, you'll get unexpected behavior. The most probable consequence is that is you call "make package" in the toplevel project you'll get a source package instead of a binary package :-) What you CAN ALREADY do is to use your toplevel project to build a package which contains all subprojects. You can even use component in the subproject(s) it will work as expected. If we want to be able to include(CPack) several times, many thing should be changed and we should specify the expected behavior very precisely, I do not think it's as easy as it may seems. Definitely on my workplan now :-( -- Erk Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake