[CMake] Select subproject packages

Eric Noulard eric.noulard at gmail.com
Fri Jun 1 08:20:40 EDT 2012


2012/6/1  <jupiter.hce at gmail.com>:
> Hi,
>
> I have a top root project and many subprojects under it. I am using
> cpack to package some subprojects, but I don't want to package
> the root project. When I run the cpack on root build directory, it
> also tried to package the root project. Is there any way to disable
> package the root project?

Not really see : http://public.kitware.com/Bug/view.php?id=11808
and related bugs.

A possible workaround would be to use CPack COMPONENT
and set CPACK_COMPONENTS_ALL to the list off component
you want ot package.

see:
http://www.vtk.org/Wiki/CMake:Component_Install_With_CPack

-- 
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org


More information about the CMake mailing list