Skip to content

Makefiles: Count explicitly included targets in progress total

Adriaan de Groot requested to merge adridg/cmake:issue-21867a into master

A target that is explicitly included (e.g. has explicitly set EXCLUDE_FROM_ALL to FALSE) needs to be added in directories that are above the source directory where the target is defined, so that it gets counted towards ALL. This affects targets where the directory containing the target is excluded, but the target itself is included; these are either counted double or not at all in previous CMake versions.

Fixes: #21867

Merge request reports