mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
The "all" target in each directory is supposed to have targets from that
directory even if the directory itself is marked `EXCLUDE_FROM_ALL` in
its parent. This was broken by commit dc6888573d (Pass EXCLUDE_FROM_ALL
from directory to targets, 2019-01-15, v3.14.0-rc1~83^2) which made the
participation of a target in "all" independent of context. Revert much
of the logic change from that commit to restore the old behavior. Then
re-implement the behavior intended by the commit to keep its test
working. Extend the test to cover the old behavior too.
Fixes: #19753
14 lines
602 B
ReStructuredText
14 lines
602 B
ReStructuredText
EXCLUDE_FROM_ALL
|
|
----------------
|
|
|
|
Set this directory property to a true value on a subdirectory to exclude
|
|
its targets from the "all" target of its ancestors. If excluded, running
|
|
e.g. ``make`` in the parent directory will not build targets the
|
|
subdirectory by default. This does not affect the "all" target of the
|
|
subdirectory itself. Running e.g. ``make`` inside the subdirectory will
|
|
still build its targets.
|
|
|
|
If the :prop_tgt:`EXCLUDE_FROM_ALL` target property is set on a target
|
|
then its value determines whether the target is included in the "all"
|
|
target of this directory and its ancestors.
|