cmake: Globally apply EXCLUDE_FROM_ALL to components
The CMake keyword `EXCLUDE_FROM_ALL` can be applied to either a target
(library or executable) or a subdirectory. To avoid building libraries
that are not used by any applications in order to save time and space
and avoid errors due to missing but unused dependencies, we exclude
libraries from CMake's `all` target. Only libraries that are required by
executables get built.
The use of `EXCLUDE_FROM_ALL` is inconsistent among different libraries
inside `components`. To fix this and improve maintainability, this
commit removes `EXCLUDE_FROM_ALL` from individual libraries and applies
the keyword globally to `components`.
Signed-off-by:
Lingkai Dong <lingkai.dong@arm.com>
Loading
Please register or sign in to comment