Makefiles: Count explicitly included targets towards the progress total
An explicitly included target is a target that has EXCLUDE_FROM_ALL set to FALSE. If the directory it is in is not excluded, there is nothing special going on. But if the directory is excluded, then the target should count, but the rest of the directory should not.
Refactor a little to give GlobalGenerator a method to query for an explicitly set-to-FALSE EXCLUDE_FROM_ALL, and then use that when counting targets for Makefile progress.
Here is an example directory structure with some silly targets and nonsensical
inclusion and exclusion, that can be built with a flag
to vary the way things are in- or excluded.
- Tarball with
CMakeLists.txtdemonstrating the issue
- Makefile (to be placed in the
issue-21867/directory) that can drive the four different builds for existing and latest cmake. Invoke it as