Don't allow include() of export(EXPORT) file at configure time.

As a new feature it does not need to participate in CMP0024.
Merge topic 'minor-cleanups' into next

d492413 Don't allow include() of export(EXPORT) file at configure time.