[cmake-developers] [DISCUSSION] Using COMPONENTs for CMake install(...)?
Alexander Neundorf
neundorf at kde.org
Wed Dec 3 15:20:43 EST 2014
On Wednesday, December 03, 2014 00:50:52 Konstantin Podsvirov wrote:
> CMake is being developed for a long time, but does not use COMPONENTs during
> installation. Why?
>
> The command install(...) allows you to specify the COMPONENT. Why this
> feature is not used by CMake?
>
> Is it possible to split the install CMake on COMPONENTs? Further it can be
> used when creating redistributable packages.
you can use them when calling the cmake_install.cmake manually, instead of
calling "make install": cmake -DCOMPONENT="MyComponent" -P cmake_install.cmake
I think at least some of the package generators support the components too.
Alex
More information about the cmake-developers
mailing list