Exceptions to the default target

The docs describe the built-in all target as:

“The default target used by Makefile and Ninja generators. Builds all targets in the buildsystem, except those which are excluded by their EXCLUDE_FROM_ALL target property or EXCLUDE_FROM_ALL directory property. The name ALL_BUILD is used for this purpose for the Xcode and Visual Studio generators.”

My question is simply if custom targets created with add_custom_target, which are not included in the all target unless the ALL option is enabled, are covered by the text above? It doesn’t look like they are, in which case I think it’d be good to add a note?

Cheers,
Nuno

For reference, the quoted documentation is in the User Interaction Guide here.

add_custom_target without ALL is indeed not in the all target. The guide could be clarified.

1 Like