Skip to content
Commit 6263b8d3 authored by Lingkai Dong's avatar Lingkai Dong Committed by Rob Walton
Browse files

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's avatarLingkai Dong <lingkai.dong@arm.com>
parent 64b73acb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment