Add support for specifying multiple installation COMPONENT names to the install() command and the cmake --install CLI command
Currently install commands like install(DIRECTORY dirs...)
accept only a single COMPONENT
name.
If a project wants to install the same files as part of different component names, it has to call install(DIRECTORY)
multiple times with different component names.
It would be a nice addition for COMPONENT
to take a list of names, to avoid multiple install()
commands.
Similarly, cmake --install .
can only take one --component <comp>
, forcing multiple calls if multiple components are to be installed.
Having --component
take multiple names would be a nice UX improvement.
Edited by alcroito