Fix find-package mode.

Create cmGeneratorTargets before generating generate-time information.
Merge topic 'fix-find-package-mode' into next

fd85721 Fix find-package mode.