https://github.com/Kitware/CMake
Raw File
Tip revision: 1e26c84b96c0ec6887de2cf5e14061ccb83bdbfe authored by Brad King on 01 July 2020, 11:14:26 UTC
CMake 3.18.0-rc3
Tip revision: 1e26c84
EXCLUDE_FROM_ALL.rst
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.
back to top