CMP0024: Store the fact of included export in global generator.

Storing it in the makefile means that the policy does not trigger
when include and export are in differing directories.
Merge topic 'fix-CMP0024-multiple-directories' into next

af1f698 CMP0024: Store the fact of included export in global generator.